lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.11-beta 40 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, unzip, nixosTests }: 2 3stdenv.mkDerivation rec { 4 pname = "grocy"; 5 version = "4.0.3"; 6 7 src = fetchurl { 8 url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip"; 9 hash = "sha256-KBTsi634SolgA01eRthMuWx7DIF7rhvJSPxiHyuKSR8="; 10 }; 11 12 nativeBuildInputs = [ unzip ]; 13 unpackPhase = '' 14 unzip ${src} -d . 15 ''; 16 17 # NOTE: if patches are created from a git checkout, those should be modified 18 # with `unixdos` to make sure those apply here. 19 patches = [ 20 ./0001-Define-configs-with-env-vars.patch 21 ./0002-Remove-check-for-config-file-as-it-s-stored-in-etc-g.patch 22 ]; 23 patchFlags = [ "--binary" "-p1" ]; 24 25 dontBuild = true; 26 27 passthru.tests = { inherit (nixosTests) grocy; }; 28 29 installPhase = '' 30 mkdir -p $out/ 31 cp -R . $out/ 32 ''; 33 34 meta = with lib; { 35 license = licenses.mit; 36 maintainers = with maintainers; [ n0emis ]; 37 description = "ERP beyond your fridge - grocy is a web-based self-hosted groceries & household management solution for your home"; 38 homepage = "https://grocy.info/"; 39 }; 40}