style: Move stuff

This commit is contained in:
Jill 2024-04-16 13:29:47 +02:00
parent 04cd7f0e95
commit 50704483fd
No known key found for this signature in database
GPG key ID: 09A5A2688F13FAC1

View file

@ -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;