From 9c56e3e21c7c08310da496dae7ee7fc4d8b1f543 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 13 Dec 2018 23:02:00 -0800 Subject: [PATCH 1/2] unclutter-xfixes: 1.3 -> 1.4 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/unclutter-xfixes/versions --- pkgs/tools/misc/unclutter-xfixes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/unclutter-xfixes/default.nix b/pkgs/tools/misc/unclutter-xfixes/default.nix index 9f43a7bd699f..31087dbf7eba 100644 --- a/pkgs/tools/misc/unclutter-xfixes/default.nix +++ b/pkgs/tools/misc/unclutter-xfixes/default.nix @@ -2,7 +2,7 @@ xlibsWrapper, libev, libXi, libXfixes, pkgconfig, asciidoc, libxslt, docbook_xsl }: -let version = "1.3"; in +let version = "1.4"; in stdenv.mkDerivation { name = "unclutter-xfixes-${version}"; @@ -12,7 +12,7 @@ stdenv.mkDerivation { owner = "Airblader"; repo = "unclutter-xfixes"; rev = "v${version}"; - sha256 = "1iikrz0023wygv29ny20xj1hlv9ry7hghlwjii6rj4jm59vl0mlz"; + sha256 = "0anny6hvwf5nh7ghgi4gdcywhwyhgfvqvp7fjhm59kjc3qxnwf96"; }; nativeBuildInputs = [pkgconfig]; From b6180444e701de6ff09289192c257e832138d0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 16 Dec 2018 17:48:58 +0000 Subject: [PATCH 2/2] unclutter-xfixes: simplify build --- pkgs/tools/misc/unclutter-xfixes/default.nix | 36 ++++---------------- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/pkgs/tools/misc/unclutter-xfixes/default.nix b/pkgs/tools/misc/unclutter-xfixes/default.nix index 31087dbf7eba..5e1661a6a299 100644 --- a/pkgs/tools/misc/unclutter-xfixes/default.nix +++ b/pkgs/tools/misc/unclutter-xfixes/default.nix @@ -2,12 +2,10 @@ xlibsWrapper, libev, libXi, libXfixes, pkgconfig, asciidoc, libxslt, docbook_xsl }: -let version = "1.4"; in +stdenv.mkDerivation rec { + pname = "unclutter-xfixes"; + version = "1.4"; -stdenv.mkDerivation { - name = "unclutter-xfixes-${version}"; - version = version; - src = fetchFromGitHub { owner = "Airblader"; repo = "unclutter-xfixes"; @@ -15,32 +13,12 @@ stdenv.mkDerivation { sha256 = "0anny6hvwf5nh7ghgi4gdcywhwyhgfvqvp7fjhm59kjc3qxnwf96"; }; - nativeBuildInputs = [pkgconfig]; - buildInputs = [ - xlibsWrapper libev libXi libXfixes - asciidoc libxslt docbook_xsl - ]; + nativeBuildInputs = [ pkgconfig asciidoc libxslt docbook_xsl ]; + buildInputs = [ xlibsWrapper libev libXi libXfixes ]; - postPatch = '' - substituteInPlace Makefile --replace "CC = gcc" "CC = cc" - ''; + makeFlags = [ "CC=${stdenv.cc.targetPrefix}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 - ''; + installFlags = [ "PREFIX=$(out)" ]; meta = with stdenv.lib; { description = "Rewrite of unclutter using the X11 Xfixes extension";