2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
|
2019-01-12 15:25:08 +00:00
|
|
|
, glib, libwnck3, procps }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xsuspender";
|
2019-01-12 15:25:08 +00:00
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernc";
|
|
|
|
repo = "xsuspender";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "03lbga68dxg89d227sdwk1f5xj4r1pmj0qh2kasi2cqh8ll7qv4b";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" "doc" ];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2019-01-12 15:25:08 +00:00
|
|
|
buildInputs = [ glib libwnck3 ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/xsuspender \
|
|
|
|
--prefix PATH : "${makeBinPath [ procps ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-10-11 06:55:05 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|