Compare commits

..

No commits in common. "6349e05033d593d8eed4556e46365110f95859ef" and "91ac4ca7e138caa8aad9c27f655c6c54c0d8d5ea" have entirely different histories.

2 changed files with 10 additions and 24 deletions

View file

@ -1,27 +1,14 @@
{ { pkgs ? import (
compiler ? "ghc865",
withHIE ? false
}:
let
# pin all-hies for getting the language server
all-hies = fetchTarball {
url = "https://github.com/infinisil/all-hies/tarball/b8fb659620b99b4a393922abaa03a1695e2ca64d";
sha256 = "sha256:0br6wsqpfk1lzz90f7zw439w1ir2p54268qilw9l2pk6yz7ganfx";
};
pkgs = import (
builtins.fetchGit { builtins.fetchGit {
name = "nixpkgs-pinned"; name = "nixpkgs-pinned";
url = https://github.com/NixOS/nixpkgs/; url = https://github.com/NixOS/nixpkgs/;
ref = "refs/heads/release-20.03"; ref = "refs/heads/release-20.03";
rev = "076c67fdea6d0529a568c7d0e0a72e6bc161ecf5"; rev = "da7ddd822e32aeebea00e97ab5aeca9758250a40";
}) { }) {},
# Pass no config for purity compiler ? "ghc865"
config = {}; }:
overlays = [
(import all-hies {}).overlay let
];
};
hp = pkgs.haskell.packages."${compiler}"; hp = pkgs.haskell.packages."${compiler}";
src = pkgs.nix-gitignore.gitignoreSource [] ./.; src = pkgs.nix-gitignore.gitignoreSource [] ./.;
drv = hp.callCabal2nix "Hash2Pub" "${src}/Hash2Pub.cabal" {}; drv = hp.callCabal2nix "Hash2Pub" "${src}/Hash2Pub.cabal" {};
@ -38,7 +25,6 @@ in
hlint hlint
stylish-haskell stylish-haskell
pkgs.python3Packages.asn1ate pkgs.python3Packages.asn1ate
] ];
++ (if withHIE then [ hie ] else []);
}; };
} }

View file

@ -1 +1 @@
(import ./default.nix {withHIE = true;}).shell (import ./default.nix {}).shell