all repos — homestead @ 74b5572c43869bdb0f653ba44170f7a91836f420

Code for my website

nix: save typing

Alan Pearce
commit

74b5572c43869bdb0f653ba44170f7a91836f420

parent

442e16896b5b699581fc654251c481a7be71c929

1 file changed, 5 insertions(+), 5 deletions(-)

jump to
M nix/default.nixnix/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