mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
40 lines
861 B
Nix
40 lines
861 B
Nix
{
|
|
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;
|
|
};
|
|
}
|