Skip to content

Instantly share code, notes, and snippets.

@dminuoso

dminuoso/foo.nix Secret

Created March 22, 2019 12:53
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 dminuoso/744e9e9f8287cc111da6f79c059b8be8 to your computer and use it in GitHub Desktop.
Save dminuoso/744e9e9f8287cc111da6f79c059b8be8 to your computer and use it in GitHub Desktop.
{ compiler ? "ghc863" }:
let
config = {
packageOverrides = pkgs: with pkgs.haskell.lib; rec {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
"${compiler}" = pkgs.haskell.packages."${compiler}".override {
overrides = sup: sel: rec {
doctest =
dontCheck (sup.callPackage ./doctest.nix { });
compass-radius =
sup.callCabal2nix "compass-radius" ./. {} ;
hexquote =
sup.callPackage ./hexquote.nix { };
};
};
};
};
};
};
pkgs = import <nixpkgs> { inherit config; };
in
{ compass-radius = pkgs.haskell.packages.${compiler}.compass-radius;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment