Skip to content

Commit be23644

Browse files
committed
survey: No need to use musl based Python for stackage yaml parsing
1 parent 8ef5f6e commit be23644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

survey/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ let
126126
stackagePackages =
127127
let
128128
stackageInfoPath = pkgs.path + "/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml";
129-
pythonWithYaml = pkgs.python2Packages.python.withPackages (pkgs: [pkgs.pyyaml]);
129+
pythonWithYaml = normalPkgs.python3Packages.python.withPackages (pkgs: [pkgs.pyyaml]);
130130
stackage-packages-file = normalPkgs.runCommand "stackage-packages" {} ''
131131
${pythonWithYaml}/bin/python -c 'import yaml, json; x = yaml.load(open("${stackageInfoPath}")); print(json.dumps([line.split(" ")[0] for line in x["default-package-overrides"]]))' > $out
132132
'';

0 commit comments

Comments
 (0)