File tree Expand file tree Collapse file tree 2 files changed +47
-2
lines changed Expand file tree Collapse file tree 2 files changed +47
-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
335
341
}
336
342
] ;
337
343
344
+ extraHackagePackages = with nixpkgs . lib ;
345
+ ( concatLists ( map
346
+ ( extraSource : ( map
347
+ ( subdir :
348
+ if subdir == "." then extraSource . src . outPath else "${ extraSource . src . outPath } /${ subdir } " )
349
+ extraSource . subdirs ) )
350
+ extraSources ) ) ;
351
+
338
352
projectFor = system :
339
353
let
340
354
pkgs = nixpkgsFor system ;
341
355
pkgs' = nixpkgsFor' system ;
356
+ # Usage:
357
+ extraHackage = inputs . haskell-nix-extra-hackage . mkHackage . ${ system } extraHackagePackages ;
342
358
in
343
359
pkgs . haskell-nix . cabalProject' {
344
360
src = ./. ;
345
- inherit cabalProjectLocal extraSources ;
361
+ inherit cabalProjectLocal ;
346
362
name = "bot-plutus-interface" ;
347
363
compiler-nix-name = "ghc8107" ;
364
+
365
+ extra-hackages = [ ( import extraHackage . hackageNix ) ] ;
366
+ extra-hackage-tarballs = [ { name = "extraHackage" ; index = extraHackage . hackageTarball ; } ] ;
367
+ modules = [ extraHackage . module ] ++ haskellModules ;
368
+
348
369
shell = {
349
370
additional = ps : [
350
371
ps . plutus-pab
364
385
nixpkgs-fmt
365
386
] ;
366
387
} ;
367
- modules = haskellModules ;
368
388
} ;
369
389
370
390
formatCheckFor = system :
You can’t perform that action at this time.
0 commit comments