Skip to content

Instantly share code, notes, and snippets.

@samrose
Created January 9, 2019 17:11
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 samrose/d08de89a368feec7213ef30fc5f7775a to your computer and use it in GitHub Desktop.
Save samrose/d08de89a368feec7213ef30fc5f7775a to your computer and use it in GitHub Desktop.
#via https://gist.githubusercontent.com/thefloweringash/cc73f3a545fe0cdcfb16fb05dd4ba570/raw/6b9789c1089643d1099ec1bf076dda0b45b76661/hydra.nix
self: super: {
hydra =
let
pkgs = import <nixpkgs> {};
notDarcs = pkgs.writeShellScriptBin "darcs" ''
echo "Stub darcs for unspported platform"
exit 1
'';
in (super.hydra.override {
darcs = notDarcs;
}).overrideAttrs (attrs: {
doCheck = false; # it tries to check darcs
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment