aboutsummaryrefslogtreecommitdiff
path: root/app/cryptpad/build
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-05-06 11:44:13 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-05-06 11:44:13 +0200
commitca55b15b5741731b520917e2a465973f7c14df60 (patch)
tree28b08f376293e4307d4df3229389f74775be20ac /app/cryptpad/build
parentb75d7c7841a4ed5b9ebef8a2d91ee6e64e3bf5bf (diff)
downloadnixcfg-ca55b15b5741731b520917e2a465973f7c14df60.tar.gz
nixcfg-ca55b15b5741731b520917e2a465973f7c14df60.zip
Add Cryptpad build and config
Diffstat (limited to 'app/cryptpad/build')
-rw-r--r--app/cryptpad/build/README.md2
-rw-r--r--app/cryptpad/build/common.nix8
-rw-r--r--app/cryptpad/build/docker.nix10
l---------app/cryptpad/build/result1
4 files changed, 21 insertions, 0 deletions
diff --git a/app/cryptpad/build/README.md b/app/cryptpad/build/README.md
new file mode 100644
index 0000000..d5f5a5d
--- /dev/null
+++ b/app/cryptpad/build/README.md
@@ -0,0 +1,2 @@
+docker load < $(nix-build docker.nix)
+docker push superboum/cryptpad:???
diff --git a/app/cryptpad/build/common.nix b/app/cryptpad/build/common.nix
new file mode 100644
index 0000000..639d9a1
--- /dev/null
+++ b/app/cryptpad/build/common.nix
@@ -0,0 +1,8 @@
+{
+ pkgsSrc = fetchTarball {
+ # Latest commit on https://github.com/NixOS/nixpkgs/tree/nixos-21.11
+ # As of 2022-04-15
+ url ="https://github.com/NixOS/nixpkgs/archive/2f06b87f64bc06229e05045853e0876666e1b023.tar.gz";
+ sha256 = "sha256:1d7zg96xw4qsqh7c89pgha9wkq3rbi9as3k3d88jlxy2z0ns0cy2";
+ };
+}
diff --git a/app/cryptpad/build/docker.nix b/app/cryptpad/build/docker.nix
new file mode 100644
index 0000000..362e9ff
--- /dev/null
+++ b/app/cryptpad/build/docker.nix
@@ -0,0 +1,10 @@
+let
+ common = import ./common.nix;
+ pkgs = import common.pkgsSrc {};
+in
+ pkgs.dockerTools.buildImage {
+ name = "superboum/cryptpad";
+ config = {
+ Cmd = [ "${pkgs.cryptpad}/bin/cryptpad" ];
+ };
+ }
diff --git a/app/cryptpad/build/result b/app/cryptpad/build/result
new file mode 120000
index 0000000..71b4a5c
--- /dev/null
+++ b/app/cryptpad/build/result
@@ -0,0 +1 @@
+/nix/store/vkbnygcq2bihcn6m4r9m134v5hdy29c4-docker-image-cryptpad.tar.gz \ No newline at end of file