Skip to content

Instantly share code, notes, and snippets.

@srhb
Created November 29, 2020 19:48
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 srhb/39e3e7c8d1ae40132a891b3b82fbfb1f to your computer and use it in GitHub Desktop.
Save srhb/39e3e7c8d1ae40132a891b3b82fbfb1f to your computer and use it in GitHub Desktop.
let
overlay = self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.override (old: {
overrides = self.lib.composeExtensions (old.overrides or (_: _: {})) (hself: hsuper: {
advent-of-code-api = hself.callHackageDirect {
pkg = "advent-of-code-api" ;
ver = "0.2.7.1";
sha256 = "1j4swkv1b0px3mdpf1akh06pdlz3rwp9gwzmcb8zrbgw0f7zgp7f";
} {};
});
});
};
in
{ pkgs ? import <nixpkgs> { overlays = [overlay]; } }:
pkgs.haskellPackages.callCabal2nix "aoc" ~/scratch/aoc {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment