cryptsetup: Add tests.nixos

authored by Robert Hensing and committed by Yureka e56fb06e e5b51364

+14 -1
+14 -1
pkgs/os-specific/linux/cryptsetup/default.nix
··· 1 1 { lib, stdenv, fetchurl, lvm2, json_c, asciidoctor 2 - , openssl, libuuid, pkg-config, popt 2 + , openssl, libuuid, pkg-config, popt, nixosTests 3 3 4 4 # The release tarballs contain precomputed manpage files, so we don't need 5 5 # to run asciidoctor on the man sources. By avoiding asciidoctor, we make ··· 52 52 # "out of memory" error, even though tons of memory is available. 53 53 # Issue filed upstream: https://gitlab.com/cryptsetup/cryptsetup/-/issues/763 54 54 doCheck = !stdenv.hostPlatform.isMusl; 55 + 56 + passthru = { 57 + tests = { 58 + nixos = 59 + lib.optionalAttrs stdenv.hostPlatform.isLinux ( 60 + lib.recurseIntoAttrs ( 61 + lib.filterAttrs 62 + (name: _value: lib.hasPrefix "luks" name) 63 + nixosTests.installer 64 + ) 65 + ); 66 + }; 67 + }; 55 68 56 69 meta = { 57 70 homepage = "https://gitlab.com/cryptsetup/cryptsetup/";