rename cmd/paste to cmd/tailpaste, nix builders for commands
Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
parent
5184d9337f
commit
93069712a9
12
flake.nix
12
flake.nix
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue