mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
tests.nixpkgs-check-by-name: Add custom argument test
This commit is contained in:
parent
6710bc250a
commit
26cec0dbe3
@ -0,0 +1,5 @@
|
||||
self: super: {
|
||||
foo = self.callPackage ./pkgs/by-name/fo/foo/package.nix {
|
||||
enableBar = true;
|
||||
};
|
||||
}
|
@ -0,0 +1 @@
|
||||
import ../mock-nixpkgs.nix { root = ./.; }
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
someDrv,
|
||||
enableBar ? false,
|
||||
}:
|
||||
if enableBar then
|
||||
someDrv
|
||||
else
|
||||
{}
|
Loading…
Reference in New Issue
Block a user