Skip to content

Instantly share code, notes, and snippets.

@Kiwi

Kiwi/.bashrc Secret

Created December 5, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwi/0c8537ab81fe22c6baced363e7f5f115 to your computer and use it in GitHub Desktop.
Save Kiwi/0c8537ab81fe22c6baced363e7f5f115 to your computer and use it in GitHub Desktop.
nix-build-haskell
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-overlays=/var/em pty "${arg[@]}"
#nix-build . -A "haskellPackages.${i}" --arg config '{ allowBroken = true; }' --argstr system aarch64-linux --show-trace -I nixpkgs-overlays=/var/em pty "${arg[@]}"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment