Skip to content

Commit 0236a82

Browse files
committed
1 parent c91a9b4 commit 0236a82

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
@@ -124,7 +124,7 @@ let
124124
stackageInfoPath = pkgs.path + "/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml";
125125
pythonWithYaml = normalPkgs.python3Packages.python.withPackages (pkgs: [pkgs.pyyaml]);
126126
stackage-packages-file = normalPkgs.runCommand "stackage-packages" {} ''
127-
${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
127+
${pythonWithYaml}/bin/python -c 'import yaml, json; x = yaml.safe_load(open("${stackageInfoPath}")); print(json.dumps([line.split(" ")[0] for line in x["default-package-overrides"]]))' > $out
128128
'';
129129
stackage-packages = builtins.fromJSON (builtins.readFile stackage-packages-file);
130130
in

0 commit comments

Comments
 (0)