-
-
Save Kiwi/b1e8ac7d6540df1b9988864e0bc552db to your computer and use it in GitHub Desktop.
nix-build-haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nix-build-haskell() { | |
local arg=(); | |
for i in "$@" | |
do | |
if [ "${i}" = "--no-out-link" ]; then | |
arg+=("$i") | |
continue | |
fi | |
nix-build . -A "haskellPackages.${i}" --arg config '{ allowBroken = true; }' --show-trace -I nixpkgs-overlays=/var/empty "${arg[@]}" | |
nix-build . -A "haskellPackages.${i}" --arg config '{ allowBroken = true; }' --argstr system x86_64-darwin --show-trace -I nixpkgs-o verlays=/var/empty "${arg[@]}" | |
nix-build . -A "haskellPackages.${i}" --arg config '{ allowBroken = true; }' --argstr system aarch64-linux --show-trace -I nixpkgs-o verlays=/var/empty "${arg[@]}" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment