From be874693ce486078ab019a6e9221f5cdab67e457 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 5 Dec 2022 15:04:14 +0100 Subject: [PATCH] linuxPackages.apfs: add passthru.tests This allows executing the test with `nix-build -A linuxPackages.apfs.tests`. --- pkgs/os-specific/linux/apfs/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/apfs/default.nix b/pkgs/os-specific/linux/apfs/default.nix index 6b7f596683e4..fc34561164a3 100644 --- a/pkgs/os-specific/linux/apfs/default.nix +++ b/pkgs/os-specific/linux/apfs/default.nix @@ -2,6 +2,7 @@ , stdenv , fetchFromGitHub , kernel +, nixosTests }: stdenv.mkDerivation { @@ -24,6 +25,8 @@ stdenv.mkDerivation { "INSTALL_MOD_PATH=$(out)" ]; + passthru.tests.test = nixosTests.apfs; + meta = with lib; { description = "APFS module for linux"; homepage = "https://github.com/linux-apfs/linux-apfs-rw";