about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to '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