Merge pull request #177694 from yayayayaka/snipe-it-6.0.4

snipe-it: 6.0.2 -> 6.0.4
main
Mario Rodas 2 years ago committed by GitHub
commit 3cab3292fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkgs/servers/web-apps/snipe-it/default.nix
  2. 4
      pkgs/servers/web-apps/snipe-it/update.sh

@ -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; {

@ -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

Loading…
Cancel
Save