File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
* imports the resulting pkgs.nix. The application of this function
4
4
* to a source path can thus be used directly as the input to mkStackPackageSet
5
5
*/
6
- { nix-tools pkgs } : { src , stackYaml ? null } :
6
+ { nix-tools , pkgs } : { src , stackYaml ? null } :
7
7
let
8
- pkgsNix = stdenv . mkDerivation {
9
- name = "${ pkgs-nix ";
8
+ pkgsNix = pkgs . stdenv . mkDerivation {
9
+ name = "pkgs-nix" ;
10
10
inherit src ;
11
11
nativeBuildInputs = [ nix-tools pkgs . nix-prefetch-git pkgs . rsync ] ;
12
12
installPhase = ''
13
- export LANG=C.utf8 # Needed or unicode in cabal files will kill stack-to-nix
13
+ export LANG=C.utf8 # Needed or stack-to-nix will die on unicode inputs
14
14
mkdir -p $out
15
15
stack-to-nix --stack-yaml=$src/${ if stackYaml == null then "stack.yaml" else stackYaml } -o $out
16
16
mv $out/pkgs.nix $out/default.nix
Original file line number Diff line number Diff line change 52
52
override = "stackage" ;
53
53
} ) ;
54
54
55
- packages = pkgs : self : ( {
55
+ packages = pkgs : self : ( rec {
56
56
inherit pkgs ; # Make pkgs available via callPackage
57
57
58
58
# Packages built to run on the build platform, not the host platform
You can’t perform that action at this time.
0 commit comments