Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e18e70e
commit 5f14f40
Showing
10 changed files
with
47 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
packages: . | ||
|
||
write-ghc-environment-files: never | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/input-output-hk/haskell-nsis | ||
tag: 016a122d845849b14711e0f86805a4748ec44584 | ||
--sha256: 14phxmmzncq63aahpw6f4sfmkf3cy075zjfyzhv2689csjwivm8y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,12 @@ | ||
{ system ? builtins.currentSystem | ||
, config ? {} | ||
, pkgs ? localLib.iohkNix.getPkgs { inherit system config; } | ||
|
||
# Disable running of tests for all local packages. | ||
, forceDontCheck ? false | ||
|
||
# Enable profiling for all haskell packages. | ||
# Profiling slows down performance by 50% so we don't enable it by default. | ||
, enableProfiling ? false | ||
|
||
# Enable separation of build/check derivations. | ||
, enableSplitCheck ? false | ||
|
||
# Keeps the debug information for all haskell packages. | ||
, enableDebugging ? false | ||
|
||
# Build (but don't run) benchmarks for all local packages. | ||
, enableBenchmarks ? false | ||
|
||
# Overrides all nix derivations to add build timing information in | ||
# their build output. | ||
, enablePhaseMetrics ? true | ||
|
||
# Overrides all nix derivations to add haddock hydra output. | ||
, enableHaddockHydra ? false | ||
|
||
# Disables optimization in the build for all local packages. | ||
, fasterBuild ? false | ||
, daedalus-bridge | ||
, localLib | ||
, localLib ? import ../lib.nix {} | ||
, pkgs ? import localLib.sources.nixpkgs { inherit system config; } | ||
}: | ||
|
||
with pkgs; | ||
with haskell.lib; | ||
|
||
let | ||
inherit daedalus-bridge; | ||
addTestStubsOverlay = import ./overlays/add-test-stubs.nix { | ||
inherit pkgs daedalus-bridge; | ||
haskellPackages = pkgs.haskellPackages.override { | ||
overrides = import ./overlays/required.nix { inherit pkgs; }; | ||
}; | ||
# We use GHC 8.2.2 because too many changes are needed to get to build with 8.4.3 | ||
haskellPackages = callPackage localLib.iohkNix.haskellPackages { | ||
inherit forceDontCheck enableProfiling enablePhaseMetrics enableHaddockHydra | ||
enableBenchmarks fasterBuild enableDebugging enableSplitCheck; | ||
pkgsGenerated = haskell.packages.ghc822; | ||
ghc = haskell.compiler.ghc822; | ||
filter = localLib.isDaedalus; | ||
requiredOverlay = ./overlays/required.nix; | ||
customOverlays = [ addTestStubsOverlay ]; | ||
}; | ||
|
||
|
||
in haskellPackages | ||
in haskellPackages // { inherit pkgs; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters