mirror of
https://github.com/ocharles/weeder.git
synced 2024-11-30 06:45:37 +03:00
32 lines
778 B
Nix
32 lines
778 B
Nix
with ( import <nixpkgs> {} );
|
|
|
|
let
|
|
inherit ( lib ) cleanSource composeExtensions;
|
|
|
|
haskellPackages =
|
|
haskell.packages.ghc881.override
|
|
{ overrides =
|
|
composeExtensions
|
|
( haskell.lib.packagesFromDirectory
|
|
{ directory =
|
|
./nix/haskell;
|
|
}
|
|
)
|
|
( self:
|
|
super:
|
|
{ weeder =
|
|
self.callCabal2nix
|
|
"weeder"
|
|
( cleanSource ./. )
|
|
{};
|
|
|
|
ghcide =
|
|
haskell.lib.dontCheck super.ghcide;
|
|
}
|
|
);
|
|
};
|
|
|
|
in
|
|
haskellPackages.weeder.env.overrideAttrs
|
|
( old: { buildInputs = old.buildInputs or [] ++ [ haskellPackages.ghcide ]; } )
|