depot/third_party/nixpkgs/pkgs/tools/misc/unclutter-xfixes/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

33 lines
927 B
Nix

{ lib, stdenv, fetchFromGitHub,
xlibsWrapper, libev, libXi, libXfixes,
pkg-config, asciidoc, libxslt, docbook_xsl }:
stdenv.mkDerivation rec {
pname = "unclutter-xfixes";
version = "1.6";
src = fetchFromGitHub {
owner = "Airblader";
repo = "unclutter-xfixes";
rev = "v${version}";
sha256 = "sha256-suKmaoJq0PBHZc7NzBQ60JGwJkAtWmvzPtTHWOPJEdc=";
};
nativeBuildInputs = [ pkg-config asciidoc libxslt docbook_xsl ];
buildInputs = [ xlibsWrapper libev libXi libXfixes ];
prePatch = ''
substituteInPlace Makefile --replace 'PKG_CONFIG =' 'PKG_CONFIG ?='
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Rewrite of unclutter using the X11 Xfixes extension";
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = [ maintainers.globin ];
mainProgram = "unclutter";
};
}