style: Move stuff
This commit is contained in:
parent
04cd7f0e95
commit
50704483fd
1 changed files with 22 additions and 17 deletions
39
default.nix
39
default.nix
|
@ -34,22 +34,9 @@
|
||||||
hash = "sha256-M+rPJ/Xo2olhqB5ViynGRaesMLLfG/1ltUoLnepMPnM=";
|
hash = "sha256-M+rPJ/Xo2olhqB5ViynGRaesMLLfG/1ltUoLnepMPnM=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in buildNpmPackage rec {
|
mkOnlyOffice = {
|
||||||
pname = "cryptpad";
|
pname, version
|
||||||
version = "2024.3.0";
|
}: stdenvNoCC.mkDerivation (final: {
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "cryptpad";
|
|
||||||
repo = "cryptpad";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-VUW6KvoSatk1/hlzklMQYlSNVH/tdbH+yU4ONUQ0JSQ=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-tvTkoxxioPuNoe8KIuXSP7QQbvcpxMnygsMmzKBQIY0=";
|
|
||||||
|
|
||||||
inherit nodejs;
|
|
||||||
|
|
||||||
onlyOffice = if withOnlyOffice then stdenvNoCC.mkDerivation (final: {
|
|
||||||
pname = "${pname}-onlyoffice";
|
pname = "${pname}-onlyoffice";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
|
@ -71,7 +58,25 @@ in buildNpmPackage rec {
|
||||||
(builtins.attrNames onlyOfficeVersions)
|
(builtins.attrNames onlyOfficeVersions)
|
||||||
)}
|
)}
|
||||||
'';
|
'';
|
||||||
}) else null;
|
});
|
||||||
|
in buildNpmPackage rec {
|
||||||
|
pname = "cryptpad";
|
||||||
|
version = "2024.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cryptpad";
|
||||||
|
repo = "cryptpad";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-VUW6KvoSatk1/hlzklMQYlSNVH/tdbH+yU4ONUQ0JSQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-tvTkoxxioPuNoe8KIuXSP7QQbvcpxMnygsMmzKBQIY0=";
|
||||||
|
|
||||||
|
inherit nodejs;
|
||||||
|
|
||||||
|
onlyOffice = lib.optional withOnlyOffice (mkOnlyOffice {
|
||||||
|
inherit pname version;
|
||||||
|
});
|
||||||
|
|
||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
|
|
Loading…
Reference in a new issue