Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Last active July 26, 2019 10:47
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 idontgetoutmuch/68c58659eb0c6135024299c4bb11ba0c to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/68c58659eb0c6135024299c4bb11ba0c to your computer and use it in GitHub Desktop.
{ system ? builtins.currentSystem }:
let
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz";
sha256 = "06cqc37yj23g3jbwvlf9704bl5dg8vrzqvs5y2q18ayg9sw61i6z";
};
in
import nixpkgs {
inherit system;
config = {}; # prevent nixpkgs from loading user configuration
overlays = [ (import ./overlay.nix) ];
}
self: super:
let haskellOverlay = hself: hsuper: {
inline-r = self.haskell.lib.dontCheck (super.haskellPackages.inline-r);
};
in
{
haskellPackages = super.haskellPackages.override { overrides = haskellOverlay; };
}
{ pkgs ? import ./nix/nixpkgs.nix {} }:
pkgs.haskellPackages.shellFor
{
packages = ps: [ ps.inline-r ];
withHoogle = false;
buildInputs = [ ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment