mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
858 B
Nix
34 lines
858 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
|
|
, glib, libwnck, procps }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xsuspender";
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kernc";
|
|
repo = "xsuspender";
|
|
rev = version;
|
|
sha256 = "1c6ab1s9bbkjbmcfv2mny273r66dlz7sgxsmzfwi0fm2vcb2lwim";
|
|
};
|
|
|
|
outputs = [ "out" "man" "doc" ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
|
buildInputs = [ glib libwnck ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/xsuspender \
|
|
--prefix PATH : "${lib.makeBinPath [ procps ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Auto-suspend inactive X11 applications";
|
|
mainProgram = "xsuspender";
|
|
homepage = "https://kernc.github.io/xsuspender/";
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|