diff options
author | Alan Pearce | 2024-04-21 11:44:37 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-21 12:49:59 +0200 |
commit | 9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301 (patch) | |
tree | 744cee438db74725c5df0bf32b0c85ce6760fb11 /nix | |
parent | ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7 (diff) | |
download | website-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.tar.lz website-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.tar.zst website-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.zip |
nix: save typing
Diffstat (limited to 'nix')
-rw-r--r-- | nix/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nix/default.nix b/nix/default.nix index 7e65d79..612e3e0 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -28,13 +28,13 @@ let 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 @@ rec { 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 |