diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-09-23 15:08:35 +0100 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2022-10-09 08:11:33 +0200 |
commit | e56fb06eef794985d73431c2dc1ef757a3664578 (patch) | |
tree | 8099d1eff3473bd01fc92332088a069507b054cd | |
parent | e5b5136429ab1df2ec1818dd8e8ae4ff04e3cf23 (diff) | |
download | nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar.gz nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar.bz2 nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar.lz nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar.xz nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.tar.zst nixpkgs-e56fb06eef794985d73431c2dc1ef757a3664578.zip |
cryptsetup: Add tests.nixos
-rw-r--r-- | pkgs/os-specific/linux/cryptsetup/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/cryptsetup/default.nix b/pkgs/os-specific/linux/cryptsetup/default.nix index 2bf95abb8ee..69e084d8aa8 100644 --- a/pkgs/os-specific/linux/cryptsetup/default.nix +++ b/pkgs/os-specific/linux/cryptsetup/default.nix @@ -1,5 +1,5 @@ { 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 # 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 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 = { homepage = "https://gitlab.com/cryptsetup/cryptsetup/"; description = "LUKS for dm-crypt"; |