2024-04-18 16:56:19 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}
|
|
|
|
|
|
|
|
, name ? "cryptpad"
|
|
|
|
, tag ? "nix-latest"
|
|
|
|
|
|
|
|
, withOnlyOffice ? true
|
|
|
|
|
|
|
|
, cryptpad ? pkgs.callPackage ./default.nix { inherit withOnlyOffice; }
|
|
|
|
}: let
|
|
|
|
cryptpad' = cryptpad.overrideAttrs {
|
|
|
|
postInstall = ''
|
|
|
|
ln -sf /cryptpad/customize $out/customize
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in pkgs.dockerTools.buildImage {
|
|
|
|
inherit name tag;
|
|
|
|
|
|
|
|
config = {
|
|
|
|
Cmd = [
|
|
|
|
(pkgs.lib.getExe cryptpad')
|
|
|
|
];
|
|
|
|
|
|
|
|
Volumes = {
|
|
|
|
"/cryptpad/customize" = {};
|
2022-05-06 09:44:13 +00:00
|
|
|
};
|
2024-04-18 16:56:19 +00:00
|
|
|
};
|
|
|
|
}
|