nixpkgs/pkgs/tools/misc/unclutter-xfixes/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
932 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub,
libev, libX11, libXext, libXi, libXfixes,
2021-01-17 03:51:22 +00:00
pkg-config, asciidoc, libxslt, docbook_xsl }:
2016-08-13 10:46:43 +00:00
2018-12-16 17:48:58 +00:00
stdenv.mkDerivation rec {
pname = "unclutter-xfixes";
2021-08-26 16:02:56 +00:00
version = "1.6";
2016-08-13 10:46:43 +00:00
src = fetchFromGitHub {
owner = "Airblader";
repo = "unclutter-xfixes";
rev = "v${version}";
2021-08-26 16:02:56 +00:00
sha256 = "sha256-suKmaoJq0PBHZc7NzBQ60JGwJkAtWmvzPtTHWOPJEdc=";
2016-08-13 10:46:43 +00:00
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config asciidoc libxslt docbook_xsl ];
buildInputs = [ libev libX11 libXext libXi libXfixes ];
2016-08-13 10:46:43 +00:00
prePatch = ''
substituteInPlace Makefile --replace 'PKG_CONFIG =' 'PKG_CONFIG ?='
'';
2018-12-16 17:48:58 +00:00
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
2016-08-13 10:46:43 +00:00
2018-12-16 17:48:58 +00:00
installFlags = [ "PREFIX=$(out)" ];
2016-08-13 10:46:43 +00:00
meta = with lib; {
2016-08-13 10:46:43 +00:00
description = "Rewrite of unclutter using the X11 Xfixes extension";
platforms = platforms.unix;
2021-01-15 09:19:50 +00:00
license = lib.licenses.mit;
maintainers = [ maintainers.globin ];
mainProgram = "unclutter";
2016-08-13 10:46:43 +00:00
};
}