cockpit: simplify update script
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
f28f642229
commit
e0680e03d1
@ -23,6 +23,7 @@
|
|||||||
, makeWrapper
|
, makeWrapper
|
||||||
, nodejs
|
, nodejs
|
||||||
, nixosTests
|
, nixosTests
|
||||||
|
, nix-update-script
|
||||||
, openssh
|
, openssh
|
||||||
, openssl
|
, openssl
|
||||||
, pam
|
, pam
|
||||||
@ -214,7 +215,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
tests = { inherit (nixosTests) cockpit; };
|
tests = { inherit (nixosTests) cockpit; };
|
||||||
updateScript = ./update.sh;
|
updateScript = nix-update-script {};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -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"
|
|
Loading…
Reference in New Issue
Block a user