From 2cba327feb1a2feea7cb694024416b020057e9bb Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 29 Oct 2015 14:38:09 +0100 Subject: gparted: add utillinux dependency for blkid From gparted-0.24.0-README.md: "Blkid command should be considered mandatory as it is required to detect a number of file systems which libparted doesn't detect." --- pkgs/tools/misc/gparted/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'pkgs/tools/misc/gparted') diff --git a/pkgs/tools/misc/gparted/default.nix b/pkgs/tools/misc/gparted/default.nix index 9281d852ff6..01154d01e7c 100644 --- a/pkgs/tools/misc/gparted/default.nix +++ b/pkgs/tools/misc/gparted/default.nix @@ -1,5 +1,6 @@ -{ stdenv, fetchurl, parted, gtk, glib, intltool, gettext, libuuid -, pkgconfig, gtkmm, libxml2, hicolor_icon_theme +{ stdenv, fetchurl, intltool, gettext, makeWrapper +, parted, gtk, glib, libuuid, pkgconfig, gtkmm, libxml2, hicolor_icon_theme +, utillinux }: stdenv.mkDerivation rec { @@ -13,7 +14,12 @@ stdenv.mkDerivation rec { configureFlags = "--disable-doc"; buildInputs = [ parted gtk glib libuuid gtkmm libxml2 hicolor_icon_theme ]; - nativeBuildInputs = [ intltool gettext pkgconfig ]; + nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ]; + + postInstall = '' + wrapProgram $out/sbin/gpartedbin \ + --prefix PATH : "${utillinux}/bin" + ''; meta = with stdenv.lib; { description = "Graphical disk partitioning tool"; -- cgit 1.4.1