opentabletdriver: use nix-update-script
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
udev,
|
||||
wrapGAppsHook3,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildDotnetModule (finalAttrs: {
|
||||
@@ -122,7 +123,7 @@ buildDotnetModule (finalAttrs: {
|
||||
versionCheckProgram = "${placeholder "out"}/bin/otd-daemon";
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
updateScript = nix-update-script { };
|
||||
tests = {
|
||||
otd-runs = nixosTests.opentabletdriver;
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
|
||||
set -euo pipefail
|
||||
|
||||
prev_version=$(nix eval --raw -f. opentabletdriver.version)
|
||||
nix-update opentabletdriver
|
||||
[[ $(nix eval --raw -f. opentabletdriver.version) == "$prev_version" ]] ||
|
||||
"$(nix-build . -A opentabletdriver.fetch-deps --no-out-link)"
|
||||
Reference in New Issue
Block a user