on iko/ghcjs-patch-master help sign in
Fix evalDeps package ids with `-` in name (#585)
71f31ceHamish Mackenzie
overlays/bootstrap.nix+1−1
@@ -21,7 +21,7 @@ let
21 done
21 done
22
22
23 mkdir -p $out/evalDeps
23 mkdir -p $out/evalDeps
24− for P in $($out/bin/${targetPrefix}ghc-pkg list --simple-output | sed 's/-[0-9.]*//g'); do
24+ for P in $($out/bin/${targetPrefix}ghc-pkg list --simple-output | sed 's/-[0-9][0-9.]*//g'); do
25 touch $out/evalDeps/$P
25 touch $out/evalDeps/$P
26 if id=$($out/bin/${targetPrefix}ghc-pkg field $P id --simple-output); then
26 if id=$($out/bin/${targetPrefix}ghc-pkg field $P id --simple-output); then
27 echo "package-id $id" >> $out/evalDeps/$P
27 echo "package-id $id" >> $out/evalDeps/$P