depot/pkgs/misc/screensavers/xssproxy/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

30 lines
806 B
Nix

{ lib, stdenv, fetchFromGitHub, glib, pkg-config, xorg, dbus }:
stdenv.mkDerivation rec {
pname = "xssproxy";
version = "1.1.0";
src = fetchFromGitHub {
owner = "vincentbernat";
repo = "xssproxy";
rev = "v${version}";
sha256 = "sha256-BE/v1CJAwKwxlK3Xg3ezD+IXyT7ZFGz3bQzGxFQfEnU=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib xorg.libX11 xorg.libXScrnSaver dbus ];
makeFlags = [
"bindir=$(out)/bin"
"man1dir=$(out)/share/man/man1"
];
meta = {
description = "Forward freedesktop.org Idle Inhibition Service calls to Xss";
mainProgram = "xssproxy";
homepage = "https://github.com/vincentbernat/xssproxy";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ benley ];
platforms = lib.platforms.unix;
};
}