From b7279c1754e7744fce482ad1ca66ec6ed09978bf Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 8 Jul 2024 14:28:53 +0200 Subject: [PATCH] pkgs/tests: init for testing build of unexposed packages (cherry picked from commit 34d14bdca2e0b6d85f3ff80370002297d2541401) --- flake.nix | 1 + pkgs/tests/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 pkgs/tests/default.nix diff --git a/flake.nix b/flake.nix index a8980512..faff595b 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,7 @@ constituents = builtins.attrValues self.packages.${system}; }; } + // (import ./pkgs/tests {inherit pkgs self;}) // (import ./ioc/tests {inherit pkgs self;}) // (import ./nixos/tests/all-tests.nix {inherit nixpkgs pkgs self system;}); diff --git a/pkgs/tests/default.nix b/pkgs/tests/default.nix new file mode 100644 index 00000000..bb76486b --- /dev/null +++ b/pkgs/tests/default.nix @@ -0,0 +1,8 @@ +# For packages that are not directly exposed to the user, +# but should still work. +# +# For example kernel modules, which depend on the kernel version, +# or Python libraries, which depend on the Python version. +{pkgs, ...}: { + mrf-driver-default-linux = pkgs.linuxPackages.mrf; +}