diff --git a/pkgs/os-specific/linux/tp_smapi/default.nix b/pkgs/os-specific/linux/tp_smapi/default.nix index 0c80a69f4888..0e27fb45b547 100644 --- a/pkgs/os-specific/linux/tp_smapi/default.nix +++ b/pkgs/os-specific/linux/tp_smapi/default.nix @@ -2,37 +2,20 @@ stdenv, lib, fetchFromGitHub, - fetchpatch, kernel, - writeScript, - coreutils, - gnugrep, - jq, - curl, - common-updater-scripts, - runtimeShell, }: stdenv.mkDerivation rec { name = "tp_smapi-${version}-${kernel.version}"; - version = "0.43"; + version = "0.44-unstable-2025-05-26"; src = fetchFromGitHub { owner = "linux-thinkpad"; repo = "tp_smapi"; - rev = "tp-smapi/${version}"; - sha256 = "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g"; + rev = "a6122c0840c36bf232250afd1da30aaedaf24910"; + 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; hardeningDisable = [ "pic" ]; @@ -53,19 +36,6 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - passthru.updateScript = import ./update.nix { - inherit - lib - writeScript - coreutils - gnugrep - jq - curl - common-updater-scripts - runtimeShell - ; - }; - meta = { description = "IBM ThinkPad hardware functions driver"; homepage = "https://github.com/linux-thinkpad/tp_smapi"; diff --git a/pkgs/os-specific/linux/tp_smapi/update.nix b/pkgs/os-specific/linux/tp_smapi/update.nix deleted file mode 100644 index 8b6fde3c0eaa..000000000000 --- a/pkgs/os-specific/linux/tp_smapi/update.nix +++ /dev/null @@ -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" -''