nixpkgs-suyu/pkgs/tools/X11/xdg-utils/default.nix
Dmitry Bushev e7f4d36621 xdg-utils: http-based fetchgit url
Change xdg-utils fetchgit url to `http` alternative since it is
more proxy-friendly. The list of repository url alternatives
can be found at http://cgit.freedesktop.org/xdg/xdg-utils/
2015-04-17 16:36:41 +03:00

27 lines
901 B
Nix

{ stdenv, fetchgit, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto, w3m }:
stdenv.mkDerivation rec {
name = "xdg-utils-1.1.0-rc3p7";
src = fetchgit {
url = "http://anongit.freedesktop.org/git/xdg/xdg-utils.git";
rev = "e8ee3b18d16e41b95148111b920a0c8beed3ac6c";
sha256 = "0qy9h7vh6sw7wmadjvasw4sdhb9fvv7bn32ifgasdx7ag3r3939w";
};
# just needed when built from git
buildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ];
postInstall = ''
substituteInPlace $out/bin/xdg-mime --replace /usr/bin/file ${file}/bin/file
'';
meta = {
homepage = http://portland.freedesktop.org/wiki/;
description = "A set of command line tools that assist applications with a variety of desktop integration tasks";
license = stdenv.lib.licenses.free;
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.linux;
};
}