Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53850 from xtruder/pkgs/xsuspender/init
xsuspender: init at 1.1
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig | ||
, glib, libwnck3, procps }: | ||
|
||
with lib; | ||
|
||
stdenv.mkDerivation rec { | ||
name = "xsuspender-${version}"; | ||
version = "1.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "kernc"; | ||
repo = "xsuspender"; | ||
rev = version; | ||
sha256 = "03lbga68dxg89d227sdwk1f5xj4r1pmj0qh2kasi2cqh8ll7qv4b"; | ||
}; | ||
|
||
outputs = [ "out" "man" "doc" ]; | ||
|
||
nativeBuildInputs = [ cmake pkgconfig makeWrapper ]; | ||
buildInputs = [ glib libwnck3 ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters