Skip to content

Commit

Permalink
Merge pull request #580 from Anton-Latukha/upd-HNix-store-0.2
Browse files Browse the repository at this point in the history
default.nix: dep: upd hnix-store 0.2

We cleaned-up the `default.nix` from most of overrides.
  • Loading branch information
Anton-Latukha authored May 26, 2020
2 parents 86b5da1 + c5d05d3 commit 389e225
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

, withHoogle ? true

, rev ? "8da81465c19fca393a3b17004c743e4d82a98e4f"
, rev ? "29d57de30101b51b016310ee51c2c4ec762f88db" # 2020-05-23: NOTE: UTC 17:00

, pkgs ?
if builtins.compareVersions builtins.nixVersion "2.0" < 0
Expand Down Expand Up @@ -60,20 +60,19 @@
}:

let
hnix-store-src = pkgs.fetchFromGitHub {
owner = "haskell-nix";
repo = "hnix-store";
rev = "0.1.0.0";
sha256 = "1z48msfkiys432rkd00fgimjgspp98dci11kgg3v8ddf4mk1s8g0";
};

overlay = pkgs.lib.foldr pkgs.lib.composeExtensions (_: _: {}) [
(import "${hnix-store-src}/overlay.nix")
(self: super: with pkgs.haskell.lib; {

semialign = super.semialign_1_1;
# 2020-05-23: NOTE: Currently HNix-store needs no overlay
# hnix-store-src = pkgs.fetchFromGitHub {
# owner = "haskell-nix";
# repo = "hnix-store";
# rev = "0.2.0.0";
# sha256 = "1qf5rn43d46vgqqgmwqdkjh78rfg6bcp4kypq3z7mx46sdpzvb78";
# };

} // pkgs.lib.optionalAttrs withHoogle {
overlay = pkgs.lib.foldr pkgs.lib.composeExtensions (_: _: {}) [
# (import "${hnix-store-src}/overlay.nix")
(self: super: with pkgs.haskell.lib;
pkgs.lib.optionalAttrs withHoogle {
ghc = super.ghc // { withPackages = super.ghc.withHoogle; };
ghcWithPackages = self.ghc.withPackages;
})
Expand All @@ -97,7 +96,6 @@ in haskellPackages.developPackage {
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
buildTools = (attrs.buildTools or []) ++ [
haskellPackages.cabal-install
# haskellPackages.brittany
];

enableLibraryProfiling = doProfiling;
Expand Down

0 comments on commit 389e225

Please sign in to comment.