diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-06 17:34:30 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-06 17:35:09 +0200 |
commit | 071e87a2025edfa8694fd3ae05be894d2be434ee (patch) | |
tree | cacc8e997f669a3ae497b2256394aa90c83c711e /app/cryptpad/build/README.md | |
parent | 0561fa8d5f07f183a27b068feb820e4777b0c020 (diff) | |
download | nixcfg-071e87a2025edfa8694fd3ae05be894d2be434ee.tar.gz nixcfg-071e87a2025edfa8694fd3ae05be894d2be434ee.zip |
Own packaging of Cryptpad
Diffstat (limited to 'app/cryptpad/build/README.md')
-rw-r--r-- | app/cryptpad/build/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/cryptpad/build/README.md b/app/cryptpad/build/README.md index d5f5a5d..079d836 100644 --- a/app/cryptpad/build/README.md +++ b/app/cryptpad/build/README.md @@ -1,2 +1,29 @@ +## Build + +Cryptpad being not NixOS native, an upgrade must be done in 4 steps: + 1. Bump the cryptpad version in `common.nix` + 2. Rebuild the Nix lock files for the dependencies + 3. Build the package for Nix + 4. Create a container from the Nix package + +To bump the nix version, set the desired tag in `common.nix` in the `cryptpadVersion` entry. +Set the corresponding commit in the `cryptadCommit` field, its goal would be to detect unwanted update of the tag. + +To rebuild the lock files (they are stored in the `nix.lock` folder): + +``` +nix-shell --run "update_lock" +``` + +To build cryptpad: + +``` +nix-build +``` + +Create the container: + +``` docker load < $(nix-build docker.nix) docker push superboum/cryptpad:??? +``` |