File tree Expand file tree Collapse file tree 2 files changed +59
-2
lines changed Expand file tree Collapse file tree 2 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
nixpkgs . follows = "haskell-nix/nixpkgs-unstable" ;
8
8
9
+ haskell-nix-extra-hackage = {
10
+ url = "github:mlabs-haskell/haskell-nix-extra-hackage/main" ;
11
+ inputs . nixpkgs . follows = "nixpkgs" ;
12
+ inputs . haskell-nix . follows = "haskell-nix" ;
13
+ } ;
14
+
9
15
iohk-nix . url = "github:input-output-hk/iohk-nix" ;
10
16
iohk-nix . flake = false ; # Bad Nix code
11
17
316
322
}
317
323
] ;
318
324
325
+ extraHackagePackages = with nixpkgs . lib ;
326
+ ( concatLists ( map
327
+ ( extraSource : ( map
328
+ ( subdir :
329
+ if subdir == "." then extraSource . src . outPath else "${ extraSource . src . outPath } /${ subdir } " )
330
+ extraSource . subdirs ) )
331
+ extraSources ) ) ;
332
+
319
333
projectFor = system :
320
334
let
321
335
pkgs = nixpkgsFor system ;
322
336
pkgs' = nixpkgsFor' system ;
337
+ # Usage:
338
+ extraHackage = inputs . haskell-nix-extra-hackage . mkHackage . ${ system } extraHackagePackages ;
323
339
in
324
340
pkgs . haskell-nix . cabalProject' {
325
341
src = ./. ;
326
- inherit cabalProjectLocal extraSources ;
342
+ inherit cabalProjectLocal ;
327
343
name = "bot-plutus-interface" ;
328
344
compiler-nix-name = "ghc8107" ;
345
+
346
+ extra-hackages = [ ( import extraHackage . hackageNix ) ] ;
347
+ extra-hackage-tarballs = [ { name = "extraHackage" ; index = extraHackage . hackageTarball ; } ] ;
348
+ modules = [ extraHackage . module ] ++ haskellModules ;
349
+
329
350
shell = {
330
351
additional = ps : [
331
352
ps . plutus-pab
345
366
nixpkgs-fmt
346
367
] ;
347
368
} ;
348
- modules = haskellModules ;
349
369
} ;
350
370
351
371
formatCheckFor = system :
You can’t perform that action at this time.
0 commit comments