rename cmd/paste to cmd/tailpaste, nix builders for commands

Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
Xe Iaso 2022-12-08 20:45:45 +00:00
parent 5184d9337f
commit 93069712a9
2 changed files with 11 additions and 1 deletions

View file

@ -34,10 +34,20 @@
modules = ./gomod2nix.toml; modules = ./gomod2nix.toml;
}; };
tailpaste = pkgs.runCommand "tailpaste" {} ''
mkdir -p $out/bin
ln -s ${bin}/bin/tailpaste $out/bin/tailpaste
'';
web = pkgs.runCommand "web" {} ''
mkdir -p $out/bin
ln -s ${bin}/bin/web $out/bin/web
'';
docker = pkgs.dockerTools.buildLayeredImage { docker = pkgs.dockerTools.buildLayeredImage {
name = "tailpaste"; name = "tailpaste";
tag = "latest"; tag = "latest";
config.Cmd = [ "${bin}/bin/web" ]; config.Cmd = [ "${web}/bin/web" ];
contents = [ pkgs.cacert bin ]; contents = [ pkgs.cacert bin ];
copyToRoot = pkgs.buildEnv { copyToRoot = pkgs.buildEnv {