opentabletdriver: use nix-update-script

This commit is contained in:
Gutyina Gergő
2025-03-11 22:00:48 +01:00
parent 0010823d6c
commit 3de2e54dac
2 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -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)"