mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
3d5f6e4c31
Tested as no material change in `out` output with `diffoscope`.
34 lines
932 B
Nix
34 lines
932 B
Nix
{ lib, stdenv, fetchFromGitHub,
|
|
libev, libX11, libXext, 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 = [ libev libX11 libXext 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";
|
|
};
|
|
}
|