3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/xsuspender/default.nix

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

35 lines
823 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
2021-06-23 19:22:04 +01:00
, glib, libwnck, procps }:
2019-01-12 15:25:08 +00:00
with lib;
stdenv.mkDerivation rec {
pname = "xsuspender";
version = "1.3";
2019-01-12 15:25:08 +00:00
src = fetchFromGitHub {
owner = "kernc";
repo = "xsuspender";
rev = version;
sha256 = "1c6ab1s9bbkjbmcfv2mny273r66dlz7sgxsmzfwi0fm2vcb2lwim";
2019-01-12 15:25:08 +00:00
};
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
2021-06-23 19:22:04 +01:00
buildInputs = [ glib libwnck ];
2019-01-12 15:25:08 +00:00
postInstall = ''
wrapProgram $out/bin/xsuspender \
--prefix PATH : "${makeBinPath [ procps ]}"
'';
meta = {
description = "Auto-suspend inactive X11 applications";
2019-01-12 15:25:08 +00:00
homepage = "https://kernc.github.io/xsuspender/";
license = licenses.wtfpl;
maintainers = with maintainers; [ offline ];
platforms = platforms.linux;
};
}