tp_smapi: 0.43 -> 0.44-unstable-2025-05-26; remove update script (#414031)

This commit is contained in:
Donovan Glover 2025-06-08 16:22:22 +00:00 committed by GitHub
commit 1617f5ee30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 61 deletions

View file

@ -2,37 +2,20 @@
stdenv, stdenv,
lib, lib,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
kernel, kernel,
writeScript,
coreutils,
gnugrep,
jq,
curl,
common-updater-scripts,
runtimeShell,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "tp_smapi-${version}-${kernel.version}"; name = "tp_smapi-${version}-${kernel.version}";
version = "0.43"; version = "0.44-unstable-2025-05-26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linux-thinkpad"; owner = "linux-thinkpad";
repo = "tp_smapi"; repo = "tp_smapi";
rev = "tp-smapi/${version}"; rev = "a6122c0840c36bf232250afd1da30aaedaf24910";
sha256 = "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g"; hash = "sha256-4bVyhTVj29ni9hduN20+VEl5/N0BAoMNMBw+k4yl8Y0=";
}; };
patches = [
# update DEFINE_SEMAPHORE usage for linux 6.4+
# https://github.com/linux-thinkpad/tp_smapi/pull/45
(fetchpatch {
url = "https://github.com/linux-thinkpad/tp_smapi/commit/0c3398b1acf2a2cabd9cee91dc3fe3d35805fa8b.patch";
hash = "sha256-J/WvijrpHGwFOZMMxnHdNin5eh8vViTcNb4nwsCqsLs=";
})
];
nativeBuildInputs = kernel.moduleBuildDependencies; nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ]; hardeningDisable = [ "pic" ];
@ -53,19 +36,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.updateScript = import ./update.nix {
inherit
lib
writeScript
coreutils
gnugrep
jq
curl
common-updater-scripts
runtimeShell
;
};
meta = { meta = {
description = "IBM ThinkPad hardware functions driver"; description = "IBM ThinkPad hardware functions driver";
homepage = "https://github.com/linux-thinkpad/tp_smapi"; homepage = "https://github.com/linux-thinkpad/tp_smapi";

View file

@ -1,28 +0,0 @@
{
lib,
writeScript,
coreutils,
curl,
gnugrep,
jq,
common-updater-scripts,
runtimeShell,
}:
writeScript "update-tp_smapi" ''
#!${runtimeShell}
PATH=${
lib.makeBinPath [
common-updater-scripts
coreutils
curl
gnugrep
jq
]
}
tags=`curl -s https://api.github.com/repos/evgeni/tp_smapi/tags`
latest_tag=`echo $tags | jq -r '.[] | .name' | grep -oP "^tp-smapi/\K.*" | sort --version-sort | tail -1`
update-source-version linuxPackages.tp_smapi "$latest_tag"
''