Skip to content

Commit 595ca11

Browse files
author
Poscat
authored
Fix stack-to-nix default.nix template (input-output-hk#91)
1 parent 53cd6d9 commit 595ca11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Stack2nix.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ packages2nix args pkgs =
201201
defaultNixContents :: String
202202
defaultNixContents = unlines
203203
[ "{ haskellNixSrc ? builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz"
204-
, ", nixpkgs ? haskellNixSrc + \"/nixpkgs\" }:"
204+
, "}:"
205205
, ""
206206
, "let"
207-
, " pkgs = import nixpkgs (import haskellNixSrc);"
207+
, " haskellNix = import haskellNixSrc { };"
208+
, " pkgs = import haskellNix.sources.nixpkgs-2003 haskellNix.nixpkgsArgs;"
208209
, ""
209210
, " pkgSet = pkgs.haskell-nix.mkStackPkgSet {"
210211
, " stack-pkgs = import ./pkgs.nix;"

0 commit comments

Comments
 (0)