nixpkgs/pkgs/misc/screensavers/xautolock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.0 KiB
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchFromGitHub
, imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
2019-05-08 16:21:27 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xautolock";
version = "2.2-7-ga23dd5c";
2019-05-08 16:21:27 +00:00
# This repository contains xautolock-2.2 plus various useful patches that
# were collected from Debian, etc.
src = fetchFromGitHub {
owner = "peti";
repo = "xautolock";
rev = "v${finalAttrs.version}";
hash = "sha256-T2zAbRqSTxRp9u6EdZmIZfVxaGveeZkJgjp1DWgORoI=";
};
2019-05-08 16:21:27 +00:00
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
2019-05-08 16:21:27 +00:00
2018-11-28 02:17:05 +00:00
makeFlags = [
"BINDIR=$(out)/bin"
"MANPATH=$(out)/share/man"
];
2019-05-08 16:21:27 +00:00
2019-11-04 12:33:53 +00:00
installTargets = [ "install" "install.man" ];
2019-05-08 16:21:27 +00:00
meta = with lib; {
description = "Launch a given program when your X session has been idle for a given time";
2019-05-08 16:21:27 +00:00
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
maintainers = with maintainers; [ peti ];
2017-04-08 03:00:45 +00:00
platforms = platforms.linux;
license = licenses.gpl2;
mainProgram = "xautolock";
};
})