summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-08-21 04:44:40 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-08-21 04:44:40 +0200
commit6bbc3a0b245ccf392a8ddbce41b372c17409f0e9 (patch)
tree7c76fd40defb9e9907c2b352f9cb98874a84eca0 /pkgs/tools/misc
parent96457d26dded05bcba8e9fbb9bf0255596654aab (diff)
parent3b29468313bc8604fe8f85c8d9316fd276d3985c (diff)
downloadnixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar.gz
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar.bz2
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar.lz
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar.xz
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.tar.zst
nixpkgs-6bbc3a0b245ccf392a8ddbce41b372c17409f0e9.zip
Merge commit '3b29468313bc8604fe8f85c8d9316fd276d3985c' into HEAD
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/colord/default.nix13
-rw-r--r--pkgs/tools/misc/findutils/default.nix9
2 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/tools/misc/colord/default.nix b/pkgs/tools/misc/colord/default.nix
index 6dc2c371e46..222b04db0d0 100644
--- a/pkgs/tools/misc/colord/default.nix
+++ b/pkgs/tools/misc/colord/default.nix
@@ -1,14 +1,14 @@
-{ stdenv, fetchzip, fetchgit, bash-completion
+{ stdenv, fetchurl, bash-completion
 , glib, polkit, pkgconfig, intltool, gusb, libusb1, lcms2, sqlite, systemd, dbus
-, automake, autoconf, libtool, gtk_doc, which, gobjectIntrospection, argyllcms
+, gtk_doc, gobjectIntrospection, argyllcms
 , libgudev, sane-backends }:
 
 stdenv.mkDerivation rec {
   name = "colord-1.2.12";
 
-  src = fetchzip {
+  src = fetchurl {
     url = "http://www.freedesktop.org/software/colord/releases/${name}.tar.xz";
-    sha256 = "0rvvbpxd5x479v4p6pck317mlf3j29s154i1n8hlx8n4znhwrb0k";
+    sha256 = "0flcsr148xshjbff030pgyk9ar25an901m9q1pjgjdvaq5j1h96m";
   };
 
   enableParallelBuilding = true;
@@ -23,12 +23,11 @@ stdenv.mkDerivation rec {
 
   # don't touch /var at install time, colord creates what it needs at runtime
   postPatch = ''
-    sed -i -e "s|if test -w .*;|if false;|" src/Makefile.in
-    sed -i -e "s|if test -w .*;|if false;|" src/Makefile.am
+    sed -e "s|if test -w .*;|if false;|" -i src/Makefile.{am,in}
   '';
 
   buildInputs = [ glib polkit pkgconfig intltool gusb libusb1 lcms2 sqlite systemd dbus gobjectIntrospection
-                  bash-completion argyllcms automake autoconf libgudev sane-backends ];
+                  bash-completion argyllcms libgudev sane-backends ];
 
   postInstall = ''
     mkdir -p $out/etc/bash_completion.d
diff --git a/pkgs/tools/misc/findutils/default.nix b/pkgs/tools/misc/findutils/default.nix
index 06a140fed50..4eef3f7a9d5 100644
--- a/pkgs/tools/misc/findutils/default.nix
+++ b/pkgs/tools/misc/findutils/default.nix
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
 
   patches = [ ./memory-leak.patch ./no-install-statedir.patch ];
 
-  buildInputs = optionals (hostPlatform == buildPlatform) [ coreutils ]; # bin/updatedb script needs to call sort
+  buildInputs = [ coreutils ]; # bin/updatedb script needs to call sort
 
   # Since glibc-2.25 the i686 tests hang reliably right after test-sleep.
   doCheck
@@ -25,7 +25,12 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "info" ];
 
-  configureFlags = [ "--localstatedir=/var/cache" ];
+  configureFlags = [
+    # "sort" need not be on the PATH as a run-time dep, so we need to tell
+    # configure where it is. Covers the cross and native case alike.
+    "SORT=${coreutils}/bin/sort"
+    "--localstatedir=/var/cache"
+  ];
 
   enableParallelBuilding = true;