2011-08-07 03:45:26 +02:00
|
|
|
{ stdenv, fetchurl, cmake, gettext, parted, libuuid, qt4, kdelibs, kde_baseapps,
|
2010-08-21 21:27:31 +02:00
|
|
|
automoc4, phonon, perl }:
|
2009-09-10 18:57:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "partitionmanager-1.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.kde-apps.org/CONTENT/content-files/89595-partitionmanager-1.0.0.tar.bz2;
|
|
|
|
sha256 = "03ibn4vns7pa0ygkp2jh6zcdy106as5cc7p6rv1f5c15wxx0zsk1";
|
|
|
|
};
|
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
buildInputs =
|
2011-08-07 03:45:26 +02:00
|
|
|
[ cmake gettext parted libuuid qt4 kdelibs kde_baseapps automoc4 perl phonon ];
|
2009-09-10 18:57:34 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export VERBOSE=1
|
2010-08-19 14:37:10 +02:00
|
|
|
cmakeFlagsArray=($cmakeFlagsArray -DGETTEXT_INCLUDE_DIR=${gettext}/include -DCMAKE_INCLUDE_PATH=${qt4}/include/QtGui )
|
2009-09-10 18:57:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
set -x
|
2010-08-19 14:37:10 +02:00
|
|
|
rpath=`patchelf --print-rpath $out/bin/partitionmanager-bin`:${qt4}/lib
|
2009-09-10 18:57:34 +02:00
|
|
|
for p in $out/bin/partitionmanager-bin; do
|
|
|
|
patchelf --set-rpath $rpath $p
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "Utility program to help you manage the disk devices";
|
2009-09-10 18:57:34 +02:00
|
|
|
homepage = http://www.kde-apps.org/content/show.php/KDE+Partition+Manager?content=89595; # ?
|
|
|
|
license = "GPL";
|
2010-07-28 20:01:17 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-10 18:57:34 +02:00
|
|
|
};
|
|
|
|
}
|