Skip to content

Instantly share code, notes, and snippets.

@cocreature
Created June 17, 2018 18:28
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 cocreature/faab392d7a39b7f0b3f4ccfc2ded08f2 to your computer and use it in GitHub Desktop.
Save cocreature/faab392d7a39b7f0b3f4ccfc2ded08f2 to your computer and use it in GitHub Desktop.
{ rev ? "95a8cb3ade1ad0e2649f0f3128e90c53964af5e1",
outputSha256 ? "0jxn25l8d65h6qnmx9f4dsi2fscqyxc0gvhnkj1bc7kicn9rr5hj",
}:
let
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
sha256 = outputSha256;
};
pkgs = import nixpkgs {};
haskellPackages = pkgs.haskell.packages.ghc843.override(old: {
overrides = self: super: {
robinhood = pkgs.haskell.lib.doBenchmark (super.callCabal2nix "robinhood" ./. {});
primitive = super.callHackage "primitive" "0.6.4.0" {};
vector-hashtables = super.callCabal2nix "vector-hashtables" (pkgs.fetchFromGitHub {
owner = "klapaucius";
repo = "vector-hashtables";
rev = "688b5791237919b3054accb0abdeaf8394759e9e";
sha256 = "0crn3xzn13kv2vxffr6pf4r55bsnmwrwl32vqnyxf0661r6qly0m";
}) {};
};
});
in
{ robinhood = haskellPackages.robinhood;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment