From eee7cafaf7961b762cb74edd1670b42e5a7547a9 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sun, 15 Jan 2017 13:28:35 -0500 Subject: coreutils: Use `buildPackages` instead of `self` hack for native version --- pkgs/tools/misc/coreutils/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'pkgs/tools/misc') diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 9e66c6ba9181..b65c20e7808d 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, perl, xz, gmp ? null +{ lib, stdenv, buildPackages, fetchurl, perl, xz, gmp ? null , aclSupport ? false, acl ? null , attrSupport ? false, attr ? null , selinuxSupport? false, libselinux ? null, libsepol ? null @@ -12,8 +12,7 @@ assert selinuxSupport -> libselinux != null && libsepol != null; with lib; -let - self = stdenv.mkDerivation rec { +stdenv.mkDerivation rec { name = "coreutils-8.26"; src = fetchurl { @@ -63,12 +62,12 @@ let # Works around a bug with 8.26: # Makefile:3440: *** Recursive variable 'INSTALL' references itself (eventually). Stop. preInstall = '' - sed -i Makefile -e 's|^INSTALL =.*|INSTALL = ${self}/bin/install -c|' + sed -i Makefile -e 's|^INSTALL =.*|INSTALL = ${buildPackages.coreutils}/bin/install -c|' ''; postInstall = '' rm $out/share/man/man1/* - cp ${self}/share/man/man1/* $out/share/man/man1 + cp ${buildPackages.coreutils}/share/man/man1/* $out/share/man/man1 ''; # Needed for fstatfs() @@ -110,6 +109,4 @@ let maintainers = [ maintainers.eelco ]; }; - }; -in - self + } -- cgit 1.4.1