1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-28 12:27:41 +03:00

Enable utf-8 when parsing dependencies

This commit is contained in:
Nicolas Mattia 2018-08-26 19:29:05 +03:00
parent abd187035c
commit bbef676f09

View File

@ -2,6 +2,7 @@
{ lib
, callPackage
, runCommand
, glibcLocales
, haskellPackages
}:
@ -58,7 +59,10 @@ rec {
} "ghc -package ghc ${./Imports.hs} -o $out" ;
# XXX: this command needs ghc in the environment so that it can call "ghc
# --print-libdir"...
in runCommand "dependencies-json" { buildInputs = [ ghc ]; }
in runCommand "dependencies-json"
{ buildInputs = [ ghc glibcLocales ];
LANG="en_US.utf-8";
}
''
${importParser} ${singleOutModulePath base modName} > $out