2015-06-18 21:23:55 +01:00
|
|
|
{ stdenv, fetchzip, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
2015-06-18 09:51:35 +01:00
|
|
|
, 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-05-13 14:32:32 +01:00
|
|
|
src = fetchzip {
|
2015-06-18 21:23:55 +01:00
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "http://cgit.freedesktop.org/xdg/xdg-utils/snapshot/e8ee3b18d16e4.tar.gz";
|
2015-05-13 14:32:32 +01:00
|
|
|
sha256 = "1hz6rv45blcii1a8n1j45rg8vzm98vh4fvlca3zmay1kp57yr4jl";
|
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 "egrep " "${gnugrep}/bin/egrep "
|
2015-07-05 08:25:13 +01:00
|
|
|
sed -i $item -re "s#([^e])grep #\1${gnugrep}/bin/grep #g" # Don't replace 'egrep'
|
2015-07-26 12:01:11 +01:00
|
|
|
substituteInPlace $item --replace "which " "type -P "
|
2015-06-18 09:51:35 +01:00
|
|
|
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
|
|
|
|