diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-06-18 22:23:55 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-06-18 22:38:08 +0200 |
commit | 61596bf405de245c71630101869ea3f4e8f8a20a (patch) | |
tree | e712933bc34d25aba42b99907f879b5251585b29 /pkgs/tools/X11/xdg-utils | |
parent | 8e19ac8d7cc7018613ff51d9266dea81547df756 (diff) | |
parent | fe75f160324672d639469dc2da69f70d4eb466a4 (diff) |
Merge #8363: pure-darwin stdenv
Diffstat (limited to 'pkgs/tools/X11/xdg-utils')
-rw-r--r-- | pkgs/tools/X11/xdg-utils/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index 4d7ead019ce6..f90de89adbdb 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -1,13 +1,12 @@ -{ stdenv, fetchzip, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto, w3m }: - -let rev = "e8ee3b18d16e41b95148111b920a0c8beed3ac6c"; in +{ stdenv, fetchzip, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto +, w3m, which, gnugrep, gnused, coreutils }: stdenv.mkDerivation rec { name = "xdg-utils-1.1.0-rc3p7"; src = fetchzip { - name = "xdg-utils-${rev}.tar.gz"; - url = "http://cgit.freedesktop.org/xdg/xdg-utils/snapshot/${rev}.tar.gz"; + name = "${name}.tar.gz"; + url = "http://cgit.freedesktop.org/xdg/xdg-utils/snapshot/e8ee3b18d16e4.tar.gz"; sha256 = "1hz6rv45blcii1a8n1j45rg8vzm98vh4fvlca3zmay1kp57yr4jl"; }; @@ -15,7 +14,14 @@ stdenv.mkDerivation rec { buildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ]; postInstall = '' - substituteInPlace $out/bin/xdg-mime --replace /usr/bin/file ${file}/bin/file + for item in $out/bin/*; do + substituteInPlace $item --replace "cut " "${coreutils}/bin/cut " + substituteInPlace $item --replace "sed " "${gnused}/bin/sed " + substituteInPlace $item --replace "grep " "${gnugrep}/bin/grep " + substituteInPlace $item --replace "egrep " "${gnugrep}/bin/egrep " + substituteInPlace $item --replace "which " "${which}/bin/which " + substituteInPlace $item --replace "/usr/bin/file" "${file}/bin/file" + done ''; meta = { |