monica: init at 4.0.0
This commit is contained in:
parent
488cc85dcf
commit
d713631265
39
pkgs/servers/web-apps/monica/default.nix
Normal file
39
pkgs/servers/web-apps/monica/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
lib,
|
||||||
|
fetchurl,
|
||||||
|
nixosTests,
|
||||||
|
dataDir ? "/var/lib/monica",
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "monica";
|
||||||
|
version = "4.0.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/monicahq/monica/releases/download/v${version}/monica-v${version}.tar.bz2";
|
||||||
|
hash = "sha256-uHsRCO7P5w1JmKDwyLUVjK6NwnTF2mjsz0hOnPrms+w=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir $out
|
||||||
|
cp -R * $out/
|
||||||
|
rm -rf $out/storage
|
||||||
|
ln -s ${dataDir}/.env $out/.env
|
||||||
|
ln -s ${dataDir}/storage $out/storage
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests.monica = nixosTests.monica;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Personal CRM";
|
||||||
|
homepage = "https://www.monicahq.com/";
|
||||||
|
longDescription = ''
|
||||||
|
Remember everything about your friends, family and business
|
||||||
|
relationships.
|
||||||
|
'';
|
||||||
|
license = lib.licenses.agpl3Plus;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1593,6 +1593,8 @@ with pkgs;
|
||||||
buildGoModule = buildGo119Module; # go 1.20 build failure
|
buildGoModule = buildGo119Module; # go 1.20 build failure
|
||||||
};
|
};
|
||||||
|
|
||||||
|
monica = callPackage ../servers/web-apps/monica { };
|
||||||
|
|
||||||
mprocs = callPackage ../tools/misc/mprocs { };
|
mprocs = callPackage ../tools/misc/mprocs { };
|
||||||
|
|
||||||
mpy-utils = python3Packages.callPackage ../tools/misc/mpy-utils { };
|
mpy-utils = python3Packages.callPackage ../tools/misc/mpy-utils { };
|
||||||
|
|
Loading…
Reference in a new issue