diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/grocy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/grocy/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/servers/grocy/default.nix b/nixpkgs/pkgs/servers/grocy/default.nix index 718d4b1bcded..193f3929809a 100644 --- a/nixpkgs/pkgs/servers/grocy/default.nix +++ b/nixpkgs/pkgs/servers/grocy/default.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv, fetchurl, unzip, nixosTests }: stdenv.mkDerivation rec { pname = "grocy"; - version = "2.6.1"; + version = "2.7.1"; src = fetchurl { url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip"; - sha256 = "1fq1zlxxhpcxj67xxlgf20dia95xcimgnm13cr56sy9f2vjx58m6"; + sha256 = "0ab1yxj499vadakq2c1lils3ir6fm02wrdgrirrlar4s4z6c4p7r"; }; nativeBuildInputs = [ unzip ]; @@ -14,11 +14,16 @@ stdenv.mkDerivation rec { unzip ${src} -d . ''; - patches = [ ./0001-Define-configs-with-env-vars.patch ]; + patches = [ + ./0001-Define-configs-with-env-vars.patch + ./0002-Remove-check-for-config-file-as-it-s-stored-in-etc-g.patch + ]; patchFlags = [ "--binary" "-p1" ]; dontBuild = true; + passthru.tests = { inherit (nixosTests) grocy; }; + installPhase = '' mkdir -p $out/ cp -R . $out/ |