|
14 | 14 | in import haskell-nix.sources.nixpkgs-2003 args;
|
15 | 15 | inherit (pkgs) lib;
|
16 | 16 |
|
17 |
| - local = |
18 |
| - if builtins.pathExists ./local.nix |
19 |
| - then import ./local.nix { inherit default; } |
20 |
| - else x: x; |
21 |
| - |
22 |
| - project = |
23 |
| - (args: pkgs.haskell-nix.stackProject (local args)) { |
24 |
| - src = pkgs.haskell-nix.haskellLib.cleanGit { name = "kore"; src = ./.; }; |
25 |
| - modules = [ |
26 |
| - { |
27 |
| - # package * |
28 |
| - enableLibraryProfiling = true; |
29 |
| - profilingDetail = "none"; |
30 |
| - # package kore |
31 |
| - packages.kore = { |
32 |
| - flags = { |
33 |
| - inherit release threaded; |
34 |
| - }; |
35 |
| - enableLibraryProfiling = profiling; |
36 |
| - enableExecutableProfiling = profiling; |
37 |
| - profilingDetail = "toplevel-functions"; |
38 |
| - |
39 |
| - # Add Z3 to PATH for unit tests. |
40 |
| - components.tests.kore-test.preCheck = '' |
41 |
| - export PATH="$PATH''${PATH:+:}${lib.getBin pkgs.z3}/bin" |
42 |
| - ''; |
| 17 | + project = pkgs.haskell-nix.stackProject { |
| 18 | + src = pkgs.haskell-nix.haskellLib.cleanGit { name = "kore"; src = ./.; }; |
| 19 | + modules = [ |
| 20 | + { |
| 21 | + # package * |
| 22 | + enableLibraryProfiling = true; |
| 23 | + profilingDetail = "none"; |
| 24 | + # package kore |
| 25 | + packages.kore = { |
| 26 | + flags = { |
| 27 | + inherit release threaded; |
43 | 28 | };
|
44 |
| - } |
45 |
| - ]; |
46 |
| - }; |
| 29 | + enableLibraryProfiling = profiling; |
| 30 | + enableExecutableProfiling = profiling; |
| 31 | + profilingDetail = "toplevel-functions"; |
| 32 | + |
| 33 | + # Add Z3 to PATH for unit tests. |
| 34 | + components.tests.kore-test.preCheck = '' |
| 35 | + export PATH="$PATH''${PATH:+:}${lib.getBin pkgs.z3}/bin" |
| 36 | + ''; |
| 37 | + }; |
| 38 | + } |
| 39 | + ]; |
| 40 | + }; |
47 | 41 |
|
48 | 42 | shell = import ./shell.nix { inherit default; };
|
49 | 43 |
|
|
0 commit comments