You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.0 KiB
50 lines
2.0 KiB
# |
|
# 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.iohk-monitoring # All `iohk-monitoring` tests |
|
# - nix build -f default.nix nix-tools.tests.iohk-monitoring.tests |
|
# - nix build -f default.nix nix-tools.exes.iohk-monitoring # All `iohk-monitoring` executables |
|
# - nix build -f default.nix nix-tools.cexes.iohk-monitoring.example-simple |
|
# |
|
# 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: |
|
// { |
|
|
|
}
|
|
|