nixpkgs/pkgs/applications/misc/xsuspender/default.nix

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

33 lines
826 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
2021-06-23 18:22:04 +00:00
, glib, libwnck, procps }:
2019-01-12 15:25:08 +00:00
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 18:22:04 +00:00
buildInputs = [ glib libwnck ];
2019-01-12 15:25:08 +00:00
postInstall = ''
wrapProgram $out/bin/xsuspender \
--prefix PATH : "${lib.makeBinPath [ procps ]}"
2019-01-12 15:25:08 +00:00
'';
meta = with lib; {
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;
};
}