depot/third_party/nixpkgs/pkgs/misc/screensavers/xautolock/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

35 lines
991 B
Nix

{ lib, stdenv, fetchFromGitHub
, imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
}:
stdenv.mkDerivation rec {
pname = "xautolock";
version = "2.2-7-ga23dd5c";
# This repository contains xautolock-2.2 plus various useful patches that
# were collected from Debian, etc.
src = fetchFromGitHub {
owner = "peti";
repo = "xautolock";
rev = "v${version}";
sha256 = "10j61rl0sx9sh84rjyfyddl73xb5i2cpb17fyrli8kwj39nw0v2g";
};
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
makeFlags = [
"BINDIR=$(out)/bin"
"MANPATH=$(out)/share/man"
];
installTargets = [ "install" "install.man" ];
meta = with lib; {
description = "Launch a given program when your X session has been idle for a given time";
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
maintainers = with maintainers; [ peti ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}