mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
f963b7f107
Among other things fixes build failure on gcc-10: ld: CMakeFiles/xsuspender.dir/xsuspender.c.o:(.bss+0x8): multiple definition of `queued_entries'; CMakeFiles/xsuspender.dir/config.c.o:(.bss+0x8): first defined here
35 lines
823 B
Nix
35 lines
823 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
|
|
, glib, libwnck, procps }:
|
|
|
|
with lib;
|
|
|
|
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 : "${makeBinPath [ procps ]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Auto-suspend inactive X11 applications";
|
|
homepage = "https://kernc.github.io/xsuspender/";
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|