nix: save typing
Alan Pearce alan@alanpearce.eu
Sun, 21 Apr 2024 11:44:37 +0200
1 files changed, 5 insertions(+), 5 deletions(-)
jump to
M nix/default.nix → nix/default.nix
@@ -28,13 +28,13 @@ }; mkDockerStream = mkDocker "streamLayeredImage"; mkDockerImage = mkDocker "buildLayeredImage"; in -rec { +with pkgs; rec{ default = server; - builder = pkgs.buildGoApplication { + builder = buildGoApplication { pname = "website-builder"; inherit version; CGO_ENABLED = 0; - src = with pkgs.lib.fileset; toSource { + src = with lib.fileset; toSource { root = ./..; fileset = unions [ ./../go.mod @@ -46,11 +46,11 @@ }; modules = ./gomod2nix.toml; subPackages = [ "cmd/build" ]; }; - server = pkgs.buildGoApplication { + server = buildGoApplication { pname = "website"; inherit version; CGO_ENABLED = 0; - src = with pkgs.lib.fileset; toSource { + src = with lib.fileset; toSource { root = ./..; fileset = unions [ ./../go.mod