about summary refs log tree commit diff stats
path: root/nix/default.nix
diff options
context:
space:
mode:
authorAlan Pearce2024-04-21 11:44:37 +0200
committerAlan Pearce2024-04-21 12:49:59 +0200
commit9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301 (patch)
tree744cee438db74725c5df0bf32b0c85ce6760fb11 /nix/default.nix
parentab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7 (diff)
downloadwebsite-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.tar.lz
website-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.tar.zst
website-9ece57315f2cfee0b2fb64d1fd9fb05fb7fb6301.zip
nix: save typing
Diffstat (limited to 'nix/default.nix')
-rw-r--r--nix/default.nix10
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