tests.nixpkgs-check-by-name: Add custom argument test

This commit is contained in:
Silvan Mosberger 2023-10-12 01:02:44 +02:00
parent 6710bc250a
commit 26cec0dbe3
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
self: super: {
foo = self.callPackage ./pkgs/by-name/fo/foo/package.nix {
enableBar = true;
};
}

View File

@ -0,0 +1 @@
import ../mock-nixpkgs.nix { root = ./.; }

View File

@ -0,0 +1,8 @@
{
someDrv,
enableBar ? false,
}:
if enableBar then
someDrv
else
{}