nixpkgs/pkgs/os-specific/linux/pam_ccreds/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
686 B
Nix

{lib, stdenv, fetchurl, pam, openssl, db}:
stdenv.mkDerivation rec {
pname = "pam_ccreds";
version = "10";
src = fetchurl {
url = "https://www.padl.com/download/pam_ccreds-${version}.tar.gz";
sha256 = "1h7zyg1b1h69civyvrj95w22dg0y7lgw3hq4gqkdcg35w1y76fhz";
};
patchPhase = ''
sed 's/-o root -g root//' -i Makefile.in
'';
buildInputs = [ pam openssl db ];
meta = with lib; {
homepage = "https://www.padl.com/OSS/pam_ccreds.html";
description = "PAM module to locally authenticate using an enterprise identity when the network is unavailable";
mainProgram = "ccreds_chkpwd";
license = licenses.gpl2;
platforms = platforms.linux;
};
}