Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move nix-tools logic to nix/haskell-packages
Avoids infinite recursion with release.nix including byronProxyScripts
- Loading branch information
1 parent
0107f07
commit 12a7783
Showing
3 changed files
with
54 additions
and
14 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,48 @@ | ||
# | ||
# The defaul.nix file. This will generate targets for all | ||
# buildables (see release.nix for nomenclature, excluding | ||
# the "build machine" last part, specific to release.nix), eg.: | ||
# | ||
# - nix build -f default.nix nix-tools.tests.io-sim # All `io-sim` tests | ||
# - nix build -f default.nix nix-tools.tests.ouroboros-consensus.test-consensus | ||
# | ||
# Generated targets include anything from stack.yaml (via | ||
# nix-tools:stack-to-nix and the nix/regenerate.sh script) | ||
# or cabal.project (via nix-tools:plan-to-nix), including all | ||
# version overrides specified there. | ||
# | ||
# Nix-tools stack-to-nix will generate the `nix/.stack-pkgs.nix` | ||
# file which is imported from the `nix/pkgs.nix` where further | ||
# customizations outside of the ones in stack.yaml/cabal.project | ||
# can be specified as needed for nix/ci. | ||
# | ||
# Please run `nix/regenerate.sh` after modifying stack.yaml | ||
# or relevant part of cabal configuration files. | ||
# When switching to recent stackage or hackage package version, | ||
# you might also need to update the iohk-nix common lib. You | ||
# can do so by running the `nix/update-iohk-nix.sh` script. | ||
# | ||
# More information about iohk-nix and nix-tools is available at: | ||
# https://github.com/input-output-hk/iohk-nix/blob/master/docs/nix-toolification.org#for-a-stackage-project | ||
# | ||
|
||
|
||
# We will need to import the iohk-nix common lib, which includes | ||
# the nix-tools tooling. | ||
let | ||
commonLib = import ./nix/iohk-common.nix; | ||
in | ||
# This file needs to export a function that takes | ||
# the arguments it is passed and forwards them to | ||
# the default-nix template from iohk-nix. This is | ||
# important so that the release.nix file can properly | ||
# parameterize this file when targetting different | ||
# hosts. | ||
{ ... }@args: | ||
# We will instantiate the default-nix template with the | ||
# nix/pkgs.nix file... | ||
commonLib.nix-tools.default-nix ./nix/pkgs.nix args | ||
# ... and add additional non-haskell packages we want to build on CI: | ||
// { | ||
|
||
} |
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