diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2012-10-04 13:38:26 +0200 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2012-10-04 13:38:26 +0200 |
commit | 24298db823714cbca08fcc69afcf589e6d43d582 (patch) | |
tree | a7a8af3d2ce713f5aff64725b8d2ccb7b705351e /pkgs/tools/X11/xdg-utils | |
parent | 396de2376206943e434184003c09c58cd0029f7f (diff) |
xdg-utils: Fix reference to /usr/bin/file in xdg-mime
Diffstat (limited to 'pkgs/tools/X11/xdg-utils')
-rw-r--r-- | pkgs/tools/X11/xdg-utils/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index cc166ba20d99..df5d59c7b57c 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, file }: stdenv.mkDerivation rec { name = "xdg-utils-1.0.2"; @@ -7,6 +7,10 @@ stdenv.mkDerivation rec { url = "http://portland.freedesktop.org/download/${name}.tgz"; sha256 = "1b019d3r1379b60p33d6z44kx589xjgga62ijz9vha95dg8vgbi1"; }; + + postInstall = '' + substituteInPlace $out/bin/xdg-mime --replace /usr/bin/file ${file}/bin/file + ''; meta = { homepage = http://portland.freedesktop.org/wiki/; |