cryptsetup: Add tests.nixos
This commit is contained in:
parent
e5b5136429
commit
e56fb06eef
1 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, fetchurl, lvm2, json_c, asciidoctor
|
{ lib, stdenv, fetchurl, lvm2, json_c, asciidoctor
|
||||||
, openssl, libuuid, pkg-config, popt
|
, openssl, libuuid, pkg-config, popt, nixosTests
|
||||||
|
|
||||||
# The release tarballs contain precomputed manpage files, so we don't need
|
# The release tarballs contain precomputed manpage files, so we don't need
|
||||||
# to run asciidoctor on the man sources. By avoiding asciidoctor, we make
|
# to run asciidoctor on the man sources. By avoiding asciidoctor, we make
|
||||||
|
@ -53,6 +53,19 @@ stdenv.mkDerivation rec {
|
||||||
# Issue filed upstream: https://gitlab.com/cryptsetup/cryptsetup/-/issues/763
|
# Issue filed upstream: https://gitlab.com/cryptsetup/cryptsetup/-/issues/763
|
||||||
doCheck = !stdenv.hostPlatform.isMusl;
|
doCheck = !stdenv.hostPlatform.isMusl;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
tests = {
|
||||||
|
nixos =
|
||||||
|
lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
||||||
|
lib.recurseIntoAttrs (
|
||||||
|
lib.filterAttrs
|
||||||
|
(name: _value: lib.hasPrefix "luks" name)
|
||||||
|
nixosTests.installer
|
||||||
|
)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://gitlab.com/cryptsetup/cryptsetup/";
|
homepage = "https://gitlab.com/cryptsetup/cryptsetup/";
|
||||||
description = "LUKS for dm-crypt";
|
description = "LUKS for dm-crypt";
|
||||||
|
|
Loading…
Reference in a new issue