diff options
author | Vincent Ambo <tazjin@google.com> | 2019-09-02T15·53+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-09-02T15·53+0100 |
commit | 99ee84b4771546e571f845ade59154bc255ac514 (patch) | |
tree | 5cfb8568a2a640548070933600fc8e19ed77cdee /services/tazblog/default.nix | |
parent | 6472b2645cba9819e0c8171e69367916a42f0a1b (diff) |
refactor(blog): Use callPackage to import derivation
Diffstat (limited to 'services/tazblog/default.nix')
-rw-r--r-- | services/tazblog/default.nix | 6 |
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 |