mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 23:27:37 +00:00
sssd: add passthru.updateScript and passthru.tests.version
This commit is contained in:
parent
2f0740661b
commit
4aeca4f1f8
@ -5,20 +5,20 @@
|
||||
libuuid, systemd, nspr, check, cmocka, uid_wrapper, p11-kit,
|
||||
nss_wrapper, ncurses, Po4a, http-parser, jansson, jose,
|
||||
docbook_xsl, docbook_xml_dtd_44,
|
||||
nixosTests,
|
||||
testers, nix-update-script, nixosTests,
|
||||
withSudo ? false }:
|
||||
|
||||
let
|
||||
docbookFiles = "${docbook_xsl}/share/xml/docbook-xsl/catalog.xml:${docbook_xml_dtd_44}/xml/dtd/docbook/catalog.xml";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sssd";
|
||||
version = "2.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SSSD";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
repo = "sssd";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-CxkEyx9X14x8x9tSSN9d0TBTPKJB2Ip7HTL98uqO0J4=";
|
||||
};
|
||||
|
||||
@ -96,14 +96,23 @@ stdenv.mkDerivation rec {
|
||||
done
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) sssd sssd-ldap; };
|
||||
passthru = {
|
||||
tests = {
|
||||
inherit (nixosTests) sssd sssd-ldap;
|
||||
version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "sssd --version";
|
||||
};
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "System Security Services Daemon";
|
||||
homepage = "https://sssd.io/";
|
||||
changelog = "https://sssd.io/release-notes/sssd-${version}.html";
|
||||
changelog = "https://sssd.io/release-notes/sssd-${finalAttrs.version}.html";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ illustris ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user