File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 64
64
then pkgs . path
65
65
else pkgs . haskell-nix . sources . nixpkgs-2205 ;
66
66
nixpkgsHoogle = import ( nixpkgs + /pkgs/development/haskell-modules/hoogle.nix ) ;
67
- in { packages ? [ ] , hoogle ? pkgs . buildPackages . haskell-nix . tool "ghc928" "hoogle" {
68
- inherit evalPackages ;
69
- version = "5.0.18.3" ;
70
- # index-state = pkgs.haskell-nix.internalHackageIndexState;
71
- index-state = "2023-06-05T00:00:00Z" ;
72
- }
73
- } :
67
+ in { packages ? [ ] , hoogle } :
74
68
let
75
69
haskellPackages = {
76
70
# For musl we can use haddock from the buildGHC
Original file line number Diff line number Diff line change @@ -142,21 +142,17 @@ let
142
142
pname = p . identifier . name ;
143
143
haddockDir = p . haddockDir ;
144
144
} ;
145
- in hoogleLocal ( {
145
+ in hoogleLocal {
146
146
packages = map docPackage ( haskellLib . flatLibDepends component ) ;
147
147
148
- # Need to add hoogle to hsPkgs.
149
- # inherit (hsPkgs) hoogle;
150
- } // (
151
- lib . optionalAttrs ( args ? tools && args . tools ? hoogle ) {
152
- hoogle = pkgsBuildBuild . haskell-nix . hackage-tool (
153
- haskellLib . versionOrModToMods args . tools . hoogle ++ [ {
148
+ hoogle = pkgsBuildBuild . haskell-nix . hackage-tool (
149
+ lib . optionals ( args ? tools && args . tools ? hoogle ) ( haskellLib . versionOrModToMods args . tools . hoogle )
150
+ ++ [ {
154
151
name = "hoogle" ;
155
152
compiler-nix-name = compiler . nix-name ;
156
153
inherit evalPackages ;
157
154
} ] ) ;
158
- }
159
- ) ) ;
155
+ } ;
160
156
161
157
mkDrvArgs = builtins . removeAttrs args [ "packages" "components" "additional" "withHoogle" "tools" ] ;
162
158
in
You can’t perform that action at this time.
0 commit comments