diff --git a/default.nix b/default.nix index 71ac4c3c6..ccb301d68 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 b1a1f9558..fa436b824 100644 --- a/services/tazblog/default.nix +++ b/services/tazblog/default.nix @@ -2,10 +2,10 @@ # # tazblog.nix was generated using cabal2nix. -{ pkgs ? import {} }: +{ 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