nixpkgs/pkgs/tools/misc/unclutter-xfixes/default.nix
Ryan Mulligan 8681d46aa1 unclutter-xfixes: 1.2 -> 1.3
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/ypik1dbi5xwyf65q8qgs6l4xg1siiinm-unclutter-xfixes-1.3/bin/unclutter -v` and found version 1.3
- ran `/nix/store/ypik1dbi5xwyf65q8qgs6l4xg1siiinm-unclutter-xfixes-1.3/bin/unclutter --version` and found version 1.3
- found 1.3 with grep in /nix/store/ypik1dbi5xwyf65q8qgs6l4xg1siiinm-unclutter-xfixes-1.3
- found 1.3 in filename of file in /nix/store/ypik1dbi5xwyf65q8qgs6l4xg1siiinm-unclutter-xfixes-1.3
2018-02-28 20:33:18 +00:00

52 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub,
xlibsWrapper, libev, libXi, libXfixes,
pkgconfig, asciidoc, libxslt, docbook_xsl }:
let version = "1.3"; in
stdenv.mkDerivation {
name = "unclutter-xfixes-${version}";
version = version;
src = fetchFromGitHub {
owner = "Airblader";
repo = "unclutter-xfixes";
rev = "v${version}";
sha256 = "1iikrz0023wygv29ny20xj1hlv9ry7hghlwjii6rj4jm59vl0mlz";
};
nativeBuildInputs = [pkgconfig];
buildInputs = [
xlibsWrapper libev libXi libXfixes
asciidoc libxslt docbook_xsl
];
postPatch = ''
substituteInPlace Makefile --replace "CC = gcc" "CC = cc"
'';
preBuild = ''
# The Makefile calls git only to discover the package version,
# but that doesn't work right in the build environment,
# so we fake it.
git() { echo v${version}; }
export -f git
'';
preInstall = ''
export DESTDIR=$out MANDIR=/man/man1
'';
postInstall = ''
mv $out/usr/bin $out/bin
mv $out/usr/share/man $out/man
'';
meta = with stdenv.lib; {
description = "Rewrite of unclutter using the X11 Xfixes extension";
platforms = platforms.unix;
license = stdenv.lib.licenses.mit;
inherit version;
};
}