2015-06-18 09:51:35 +01:00
|
|
|
{ stdenv, fetchgit, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
|
|
|
, w3m, which, gnugrep, gnused, coreutils }:
|
2010-03-25 19:48:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-07 06:30:05 +00:00
|
|
|
name = "xdg-utils-1.1.0-rc3p7";
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2015-02-07 06:30:05 +00:00
|
|
|
src = fetchgit {
|
2015-04-06 09:15:47 +01:00
|
|
|
url = "http://anongit.freedesktop.org/git/xdg/xdg-utils.git";
|
2015-02-07 06:30:05 +00:00
|
|
|
rev = "e8ee3b18d16e41b95148111b920a0c8beed3ac6c";
|
|
|
|
sha256 = "0qy9h7vh6sw7wmadjvasw4sdhb9fvv7bn32ifgasdx7ag3r3939w";
|
2010-03-25 19:48:06 +00:00
|
|
|
};
|
2012-10-04 12:38:26 +01:00
|
|
|
|
2015-02-07 06:30:05 +00:00
|
|
|
# just needed when built from git
|
|
|
|
buildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ];
|
2015-01-25 13:30:27 +00:00
|
|
|
|
2012-10-04 12:38:26 +01:00
|
|
|
postInstall = ''
|
2015-06-18 09:51:35 +01:00
|
|
|
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
|
2012-10-04 12:38:26 +01:00
|
|
|
'';
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2010-03-25 19:48:06 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://portland.freedesktop.org/wiki/;
|
|
|
|
description = "A set of command line tools that assist applications with a variety of desktop integration tasks";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2010-03-25 19:48:06 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2015-02-07 06:30:05 +00:00
|
|
|
|