Skip to content
Snippets Groups Projects
Commit 176a73bb authored by Kosyrev Serge's avatar Kosyrev Serge
Browse files

review: apply suggestion by Matthew Pickering

parent 6956c2fd
No related branches found
No related tags found
No related merge requests found
...@@ -4,18 +4,10 @@ ...@@ -4,18 +4,10 @@
# it can either be a local directory or fetched from the web # it can either be a local directory or fetched from the web
}: }:
let let
ghc = (haskell.packages.ghc822.override (oldArgs: { hpkgs = haskell.packages.ghc822.extend (self: super:
overrides = self: super: { aeson = haskell.lib.addBuildDepends super.aeson [self.contravariant]; });
let parent = (oldArgs.overrides or (_: _: {})) self super; ghc = hpkgs.ghcWithPackages (ps: with ps;
in [ hopenssl distribution-nixpkgs ]);
parent // (with haskell.lib; with self; {
aeson = overrideCabal super.aeson (drv:
{ libraryHaskellDepends = drv.libraryHaskellDepends ++ [contravariant];
});
});
})).ghcWithPackages (ps: with ps;
[ ps.hopenssl ps.distribution-nixpkgs
]);
in in
stdenv.mkDerivation { stdenv.mkDerivation {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment