2013-02-23 23:32:54 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, cmake, gettext, automoc4, perl
|
|
|
|
, parted, libuuid, qt4, kdelibs, kde_baseapps, phonon, libatasmart
|
|
|
|
}:
|
2009-09-10 20:57:34 +04:00
|
|
|
|
2013-02-23 23:32:54 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "partitionmanager-1.0.3_p20120804";
|
2009-09-10 20:57:34 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-23 23:32:54 +04:00
|
|
|
#url = "mirror://sourceforge/partitionman/${name}.tar.bz2";
|
|
|
|
# the upstream version is old and doesn't build
|
|
|
|
url = "http://dev.gentoo.org/~kensington/distfiles/${name}.tar.bz2";
|
|
|
|
sha256 = "1j6zpgj8xs98alzxvcibwch9yj8jsx0s7y864gbdx280jmj8c1np";
|
2009-09-10 20:57:34 +04:00
|
|
|
};
|
|
|
|
|
2013-02-23 23:32:54 +04:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig cmake gettext automoc4 perl
|
|
|
|
parted libuuid qt4 kdelibs kde_baseapps phonon libatasmart
|
|
|
|
];
|
2009-09-10 20:57:34 +04:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export VERBOSE=1
|
2010-08-19 16:37:10 +04:00
|
|
|
cmakeFlagsArray=($cmakeFlagsArray -DGETTEXT_INCLUDE_DIR=${gettext}/include -DCMAKE_INCLUDE_PATH=${qt4}/include/QtGui )
|
2009-09-10 20:57:34 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
set -x
|
2013-02-23 23:32:54 +04:00
|
|
|
rpath=`patchelf --print-rpath $out/bin/partitionmanager-bin`:${qt4}/lib
|
2009-09-10 20:57:34 +04:00
|
|
|
for p in $out/bin/partitionmanager-bin; do
|
|
|
|
patchelf --set-rpath $rpath $p
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2013-02-23 23:32:54 +04:00
|
|
|
meta = {
|
2010-07-28 22:01:17 +04:00
|
|
|
description = "Utility program to help you manage the disk devices";
|
2009-09-10 20:57:34 +04:00
|
|
|
homepage = http://www.kde-apps.org/content/show.php/KDE+Partition+Manager?content=89595; # ?
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-07-28 22:01:17 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-10 20:57:34 +04:00
|
|
|
};
|
|
|
|
}
|