mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 11:03:15 +03:00
tp_smapi: 0.43 -> 0.44-unstable-2025-05-26; remove update script (#414031)
This commit is contained in:
commit
1617f5ee30
2 changed files with 3 additions and 61 deletions
|
@ -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";
|
||||
|
|
|
@ -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"
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue