2020-02-07 16:34:48 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "grocy";
|
2020-04-03 21:56:49 +02:00
|
|
|
version = "2.6.2";
|
2020-02-07 16:34:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip";
|
2020-04-03 21:56:49 +02:00
|
|
|
sha256 = "1cjkyv50vwx24xb1mxgy51mr4qqsqgixjww06rql77d9czmmd94k";
|
2020-02-07 16:34:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip ${src} -d .
|
|
|
|
'';
|
|
|
|
|
2020-03-06 23:46:07 +01:00
|
|
|
patches = [ ./0001-Define-configs-with-env-vars.patch ];
|
|
|
|
patchFlags = [ "--binary" "-p1" ];
|
2020-02-07 16:34:48 +01:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
description = "ERP beyond your fridge - grocy is a web-based self-hosted groceries & household management solution for your home";
|
|
|
|
homepage = "https://grocy.info/";
|
|
|
|
};
|
|
|
|
}
|