about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--default.nix2
-rw-r--r--services/tazblog/default.nix6
2 files changed, 4 insertions, 4 deletions
diff --git a/default.nix b/default.nix
index 71ac4c3c6e13..ccb301d68f4e 100644
--- a/default.nix
+++ b/default.nix
@@ -25,7 +25,7 @@ let
   localPkgs = self: super: {
     # Local projects should be added here:
     tazjin = {
-      blog = import ./services/tazblog { pkgs = self; };
+      blog = self.callPackage ./services/tazblog {};
       blog_cli = self.callPackage ./tools/blog_cli {};
       gemma = self.callPackage ./services/gemma {};
     };
diff --git a/services/tazblog/default.nix b/services/tazblog/default.nix
index b1a1f95587bc..fa436b824cad 100644
--- a/services/tazblog/default.nix
+++ b/services/tazblog/default.nix
@@ -2,10 +2,10 @@
 #
 # tazblog.nix was generated using cabal2nix.
 
-{ pkgs ? import <nixpkgs> {} }:
+{ writeShellScriptBin, haskell }:
 
-let tazblog = pkgs.haskell.packages.ghc865.callPackage ./tazblog.nix {};
-in pkgs.writeShellScriptBin "tazblog" ''
+let tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
+in writeShellScriptBin "tazblog" ''
   export PORT=8000
   export RESOURCE_DIR=${./static}
   exec ${tazblog}/bin/tazblog