diff --git a/pkgs/development/libraries/libxcrypt/default.nix b/pkgs/development/libraries/libxcrypt/default.nix index dc2c5d3fb6cc..db5f5026f2c1 100644 --- a/pkgs/development/libraries/libxcrypt/default.nix +++ b/pkgs/development/libraries/libxcrypt/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, perl }: +{ lib, stdenv, fetchurl, perl, nixosTests }: stdenv.mkDerivation rec { pname = "libxcrypt"; @@ -9,6 +9,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc="; }; + outputs = [ + "out" + "man" + ]; + configureFlags = [ "--enable-hashes=all" "--enable-obsolete-api=glibc" @@ -25,11 +30,15 @@ stdenv.mkDerivation rec { doCheck = !stdenv.hostPlatform.isMusl; + passthru.tests = { + inherit (nixosTests) login shadow; + }; + meta = with lib; { description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others"; homepage = "https://github.com/besser82/libxcrypt/"; platforms = platforms.all; - maintainers = with maintainers; [ dottedmag ]; + maintainers = with maintainers; [ dottedmag hexa ]; license = licenses.lgpl21Plus; }; }