diff options
author | lucasew <lucas59356@gmail.com> | 2023-10-22 22:47:41 -0300 |
---|---|---|
committer | lucasew <lucas59356@gmail.com> | 2023-10-22 22:47:41 -0300 |
commit | e0680e03d19395b447d0fe73876719e68fa63345 (patch) | |
tree | 442d5aa02b2bd3735bd80b06d3cc58921aa0b36e /pkgs/by-name/co | |
parent | f28f64222941f3d7bbca6d43c7d022c8264e0c81 (diff) |
cockpit: simplify update script
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'pkgs/by-name/co')
-rw-r--r-- | pkgs/by-name/co/cockpit/package.nix | 3 | ||||
-rwxr-xr-x | pkgs/by-name/co/cockpit/update.sh | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/pkgs/by-name/co/cockpit/package.nix b/pkgs/by-name/co/cockpit/package.nix index ab73d770dd9be..48bcff3f32a92 100644 --- a/pkgs/by-name/co/cockpit/package.nix +++ b/pkgs/by-name/co/cockpit/package.nix @@ -23,6 +23,7 @@ , makeWrapper , nodejs , nixosTests +, nix-update-script , openssh , openssl , pam @@ -214,7 +215,7 @@ stdenv.mkDerivation rec { passthru = { tests = { inherit (nixosTests) cockpit; }; - updateScript = ./update.sh; + updateScript = nix-update-script {}; }; meta = with lib; { diff --git a/pkgs/by-name/co/cockpit/update.sh b/pkgs/by-name/co/cockpit/update.sh deleted file mode 100755 index c1834db9d39c8..0000000000000 --- a/pkgs/by-name/co/cockpit/update.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl jq common-updater-scripts - -set -eu -o pipefail - -version="$(curl --silent "https://api.github.com/repos/cockpit-project/cockpit/releases" | jq '.[0].tag_name' --raw-output)" - -update-source-version cockpit "$version" |