mirror of
https://github.com/srid/haskell-flake.git
synced 2024-09-11 05:55:25 +03:00
parent
08e98de40d
commit
e0c8f32d30
@ -35,19 +35,11 @@ in
|
||||
localPackagesOverlay = self: _:
|
||||
let
|
||||
fromSdist = self.buildFromCabalSdist or (builtins.trace "Your version of Nixpkgs does not support hs.buildFromCabalSdist yet." (pkg: pkg));
|
||||
filterSrc = name: src: lib.cleanSourceWith { inherit src name; filter = path: type: true; };
|
||||
in
|
||||
lib.mapAttrs
|
||||
(name: value:
|
||||
let
|
||||
# callCabal2nix does not need a filtered source. It will
|
||||
# only pick out the cabal and/or hpack file.
|
||||
pkgProto = self.callCabal2nix name value.root { };
|
||||
pkgFiltered = pkgs.haskell.lib.overrideSrc pkgProto {
|
||||
src = filterSrc name value.root;
|
||||
};
|
||||
in
|
||||
fromSdist pkgFiltered)
|
||||
fromSdist (self.callCabal2nix name value.root { })
|
||||
)
|
||||
config.packages;
|
||||
|
||||
defaultBuildTools = hp: with hp; {
|
||||
|
Loading…
Reference in New Issue
Block a user