Skip to content

Instantly share code, notes, and snippets.

@nschoe
Last active December 17, 2018 09:27
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 nschoe/390a2e01a2e54fd78df8a37be22935d9 to your computer and use it in GitHub Desktop.
Save nschoe/390a2e01a2e54fd78df8a37be22935d9 to your computer and use it in GitHub Desktop.
release1.nix
{ compiler ? "ghc844",
crossSystem ? null }:
let
config = {
packageOverrides = pkgs: rec {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
"${compiler}" = pkgs.haskell.packages."${compiler}".override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
hub =
haskellPackagesNew.callPackage ./default.nix { };
attoparsec-time =
haskellPackagesNew.callPackage ./attoparsec-time.nix { };
optparse-applicative-simple =
haskellPackagesNew.callPackage ./optparse-applicative-simple.nix { };
servant-client =
haskellPackagesNew.callPackage ./servant-client.nix { };
# doctest =
# haskellPackagesNew.callPackage ./doctest.nix { };
};
};
};
};
};
};
pkgs = import <nixpkgs> { inherit config; inherit crossSystem; };
in
{ hub = pkgs.haskell.lib.dontCheck (pkgs.haskell.packages.${compiler}.hub);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment