Files
nixpkgs/pkgs/by-name/ks/kstart/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
keyutils,
libkrb5,
openafs,
perl,
pkg-config,
enableSetPAG ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kstart";
version = "4.3";
src = fetchFromGitHub {
owner = "rra";
repo = "kstart";
rev = "release/${finalAttrs.version}";
hash = "sha256-MGWL4oNc0MZTGWqBEt2wRTkqoagiUTDrS0kz4ewbZZA=";
};
nativeBuildInputs = [
autoreconfHook
perl
pkg-config
];
buildInputs = [
keyutils
libkrb5
openafs
];
configureFlags = [
"--enable-silent-rules"
]
++ (lib.optional enableSetPAG "--enable-setpag");
preBuild = ''
for f in k5start krenew; do
pod2man --release="${finalAttrs.version}" --center="kstart" docs/"$f".pod >docs/"$f".1
done
'';
doCheck = true;
preCheck = ''
patchShebangs tests
'';
outputs = [
"out"
"man"
];
meta = with lib; {
outputsToInstall = [
"out"
"man"
];
description = "Modified version of kerberos tools that support automatic ticket refresh";
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
};
})