Commit e0680e03 authored by lucasew's avatar lucasew
Browse files

cockpit: simplify update script



Signed-off-by: default avatarlucasew <lucas59356@gmail.com>
parent f28f6422
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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; {

pkgs/by-name/co/cockpit/update.sh

deleted100755 → 0
+0 −8
Original line number Diff line number Diff line
#!/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"