From f0ead6efed2ce7078302b825ad6b98fbbeebc693 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 5 May 2022 17:45:15 +0200 Subject: WIP Cryptpad packaging --- app/cryptpad/build/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/cryptpad/build/default.nix (limited to 'app/cryptpad/build/default.nix') diff --git a/app/cryptpad/build/default.nix b/app/cryptpad/build/default.nix new file mode 100644 index 0000000..2069a58 --- /dev/null +++ b/app/cryptpad/build/default.nix @@ -0,0 +1,27 @@ +let + common = import ./common.nix; + pkgs = import common.pkgsSrc {}; + nodejs = pkgs.${common.nodejs}; +in + pkgs.stdenv.mkDerivation { + name = "cryptpad"; + src = ./cryptpad; + + installPhase = '' + mkdir -p $out/{bin,opt} + + cp -r config customize.dist lib node_modules package.json package-lock.json server.js www $out/opt/ + ln -s / $out/opt/root + + cat > $out/bin/cryptpad <