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
313
319
}
314
320
] ;
315
321
322
+ extraHackagePackages = with nixpkgs . lib ;
323
+ ( concatLists ( map
324
+ ( extraSource : ( map
325
+ ( subdir :
326
+ if subdir == "." then extraSource . src . outPath else "${ extraSource . src . outPath } /${ subdir } " )
327
+ extraSource . subdirs ) )
328
+ extraSources ) ) ;
329
+
316
330
projectFor = system :
317
331
let
318
332
pkgs = nixpkgsFor system ;
319
333
pkgs' = nixpkgsFor' system ;
334
+ # Usage:
335
+ extraHackage = inputs . haskell-nix-extra-hackage . mkHackage . ${ system } extraHackagePackages ;
320
336
in
321
337
pkgs . haskell-nix . cabalProject' {
322
338
src = ./. ;
323
- inherit cabalProjectLocal extraSources ;
339
+ inherit cabalProjectLocal ;
324
340
name = "bot-plutus-interface" ;
325
341
compiler-nix-name = "ghc8107" ;
342
+
343
+ extra-hackages = [ ( import extraHackage . hackageNix ) ] ;
344
+ extra-hackage-tarballs = [ { name = "extraHackage" ; index = extraHackage . hackageTarball ; } ] ;
345
+ modules = [ extraHackage . module ] ++ haskellModules ;
346
+
326
347
shell = {
327
348
additional = ps : [
328
349
ps . plutus-pab
342
363
nixpkgs-fmt
343
364
] ;
344
365
} ;
345
- modules = haskellModules ;
346
366
} ;
347
367
348
368
formatCheckFor = system :
You can’t perform that action at this time.
0 commit comments