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
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
pam ? null,
|
|
libX11,
|
|
libXext,
|
|
libXinerama,
|
|
libXdmcp,
|
|
libXt,
|
|
autoreconfHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xlockmore";
|
|
version = "5.84";
|
|
|
|
src = fetchurl {
|
|
url = "http://sillycycle.com/xlock/xlockmore-${version}.tar.xz";
|
|
sha256 = "sha256-HiZ89pIL6nmBNemMJZBaj1Q21H5cYLJOCbIXZgWpRtQ=";
|
|
curlOpts = "--user-agent 'Mozilla/5.0'";
|
|
};
|
|
|
|
# Optionally, it can use GTK.
|
|
buildInputs = [
|
|
pam
|
|
libX11
|
|
libXext.dev
|
|
libXinerama
|
|
libXdmcp
|
|
libXt
|
|
];
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
# Don't try to install `xlock' setuid. Password authentication works
|
|
# fine via PAM without super user privileges.
|
|
configureFlags = [
|
|
"--disable-setuid"
|
|
"--enable-appdefaultdir=${placeholder "out"}/share/X11/app-defaults"
|
|
]
|
|
++ (lib.optional (pam != null) "--enable-pam");
|
|
|
|
postPatch =
|
|
let
|
|
makePath = p: lib.concatMapStringsSep " " (x: x + "/" + p) buildInputs;
|
|
inputs = "${makePath "lib"} ${makePath "include"}";
|
|
in
|
|
''
|
|
sed -i 's,\(for ac_dir in\),\1 ${inputs},' configure.ac
|
|
sed -i 's,/usr/,/no-such-dir/,g' configure.ac
|
|
'';
|
|
|
|
hardeningDisable = [ "format" ]; # no build output otherwise
|
|
|
|
meta = with lib; {
|
|
description = "Screen locker for the X Window System";
|
|
homepage = "http://sillycycle.com/xlockmore.html";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "xlock";
|
|
};
|
|
}
|