about summary refs log tree commit diff
path: root/services/tazblog/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-09-02T15·53+0100
committerVincent Ambo <tazjin@google.com>2019-09-02T15·53+0100
commit99ee84b4771546e571f845ade59154bc255ac514 (patch)
tree5cfb8568a2a640548070933600fc8e19ed77cdee /services/tazblog/default.nix
parent6472b2645cba9819e0c8171e69367916a42f0a1b (diff)
refactor(blog): Use callPackage to import derivation
Diffstat (limited to 'services/tazblog/default.nix')
-rw-r--r--services/tazblog/default.nix6
1 files changed, 3 insertions, 3 deletions
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