forked from LnL7/nix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ensures just `nix build`-ing the flake doesn't forget to run all tests. One can still specifiy specific attributes to just build one thing.
- Loading branch information
1 parent
538b3ac
commit 7d53702
Showing
5 changed files
with
96 additions
and
7 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
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,86 @@ | ||
{ | ||
buildEnv, | ||
|
||
nix-util, | ||
nix-util-c, | ||
nix-util-test-support, | ||
nix-util-tests, | ||
|
||
nix-store, | ||
nix-store-c, | ||
nix-store-test-support, | ||
nix-store-tests, | ||
|
||
nix-fetchers, | ||
nix-fetchers-tests, | ||
|
||
nix-expr, | ||
nix-expr-c, | ||
nix-expr-test-support, | ||
nix-expr-tests, | ||
|
||
nix-flake, | ||
nix-flake-tests, | ||
|
||
nix-main, | ||
nix-main-c, | ||
|
||
nix-cmd, | ||
|
||
nix-cli, | ||
|
||
nix-functional-tests, | ||
|
||
nix-internal-api-docs, | ||
nix-external-api-docs, | ||
|
||
nix-perl-bindings, | ||
}: | ||
|
||
buildEnv rec { | ||
name = "nix-${nix-cli.version}"; | ||
paths = [ | ||
nix-util | ||
nix-util-c | ||
nix-util-test-support | ||
nix-util-tests | ||
|
||
nix-store | ||
nix-store-c | ||
nix-store-test-support | ||
nix-store-tests | ||
|
||
nix-fetchers | ||
nix-fetchers-tests | ||
|
||
nix-expr | ||
nix-expr-c | ||
nix-expr-test-support | ||
nix-expr-tests | ||
|
||
nix-flake | ||
nix-flake-tests | ||
|
||
nix-main | ||
nix-main-c | ||
|
||
nix-cmd | ||
|
||
nix-cli | ||
|
||
nix-functional-tests | ||
|
||
nix-internal-api-docs | ||
nix-external-api-docs | ||
|
||
nix-perl-bindings | ||
]; | ||
|
||
buildInputs = [ | ||
# Actually run the unit tests too | ||
nix-util-tests.tests.run | ||
nix-store-tests.tests.run | ||
nix-expr-tests.tests.run | ||
nix-flake-tests.tests.run | ||
]; | ||
} |
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 |
---|---|---|
|
@@ -61,8 +61,9 @@ let | |
"nix-main" | ||
"nix-main-c" | ||
"nix-cmd" | ||
"nix-ng" | ||
"nix-cli" | ||
"nix-functional-tests" | ||
"nix-ng" | ||
]; | ||
in | ||
{ | ||
|
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