mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
tp_smapi: remove update script
This commit is contained in:
parent
9c09d5e27c
commit
32ddfbc9e7
2 changed files with 0 additions and 48 deletions
|
@ -4,13 +4,6 @@
|
|||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
kernel,
|
||||
writeScript,
|
||||
coreutils,
|
||||
gnugrep,
|
||||
jq,
|
||||
curl,
|
||||
common-updater-scripts,
|
||||
runtimeShell,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -53,19 +46,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