diff --git a/pkgs/servers/web-apps/snipe-it/default.nix b/pkgs/servers/web-apps/snipe-it/default.nix index cf72123ba1e8..3e3ac6fde11b 100644 --- a/pkgs/servers/web-apps/snipe-it/default.nix +++ b/pkgs/servers/web-apps/snipe-it/default.nix @@ -18,13 +18,13 @@ let in package.override rec { pname = "snipe-it"; - version = "6.0.2"; + version = "6.0.4"; src = fetchFromGitHub { owner = "snipe"; repo = pname; rev = "v${version}"; - sha256 = "174s2h3whim98d9h8l4qr3vpk199zfxgwyys3d3gblpx1m5mr07k"; + sha256 = "06h8rnk8q85f0z0a1q0j010kzs4z2k5sxvi06avk7ndpkrisv4wz"; }; meta = with lib; { diff --git a/pkgs/servers/web-apps/snipe-it/update.sh b/pkgs/servers/web-apps/snipe-it/update.sh index cf06f81b0781..3e5f70f1a587 100755 --- a/pkgs/servers/web-apps/snipe-it/update.sh +++ b/pkgs/servers/web-apps/snipe-it/update.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#! nix-shell -i bash -p nix curl jq nix-update +#! nix-shell -I nixpkgs=../../../.. -i bash -p nix curl jq nix-update # check if composer2nix is installed if ! command -v composer2nix &> /dev/null; then @@ -7,7 +7,7 @@ if ! command -v composer2nix &> /dev/null; then exit 1 fi -CURRENT_VERSION=$(nix eval --raw '(with import ../../../.. {}; snipe-it.version)') +CURRENT_VERSION=$(nix eval -f ../../../.. --raw snipe-it.version) TARGET_VERSION_REMOTE=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} https://api.github.com/repos/snipe/snipe-it/releases/latest | jq -r ".tag_name") TARGET_VERSION=${TARGET_VERSION_REMOTE:1} SNIPE_IT=https://github.com/snipe/snipe-it/raw/$TARGET_VERSION_REMOTE