kdePackages.partitionManager: fix via update to Gentoo version

+15 -10
+15 -10
pkgs/tools/misc/partition-manager/default.nix
··· 1 - { stdenv, fetchurl, cmake, gettext, parted, libuuid, qt4, kdelibs, kde_baseapps, 2 - automoc4, phonon, perl }: 1 + { stdenv, fetchurl, pkgconfig, cmake, gettext, automoc4, perl 2 + , parted, libuuid, qt4, kdelibs, kde_baseapps, phonon, libatasmart 3 + }: 3 4 4 - stdenv.mkDerivation { 5 - name = "partitionmanager-1.0.0"; 5 + stdenv.mkDerivation rec { 6 + name = "partitionmanager-1.0.3_p20120804"; 6 7 7 8 src = fetchurl { 8 - url = http://www.kde-apps.org/CONTENT/content-files/89595-partitionmanager-1.0.0.tar.bz2; 9 - sha256 = "03ibn4vns7pa0ygkp2jh6zcdy106as5cc7p6rv1f5c15wxx0zsk1"; 9 + #url = "mirror://sourceforge/partitionman/${name}.tar.bz2"; 10 + # the upstream version is old and doesn't build 11 + url = "http://dev.gentoo.org/~kensington/distfiles/${name}.tar.bz2"; 12 + sha256 = "1j6zpgj8xs98alzxvcibwch9yj8jsx0s7y864gbdx280jmj8c1np"; 10 13 }; 11 14 12 - buildInputs = 13 - [ cmake gettext parted libuuid qt4 kdelibs kde_baseapps automoc4 perl phonon ]; 15 + buildInputs = [ 16 + pkgconfig cmake gettext automoc4 perl 17 + parted libuuid qt4 kdelibs kde_baseapps phonon libatasmart 18 + ]; 14 19 15 20 preConfigure = '' 16 21 export VERBOSE=1 ··· 19 24 20 25 postInstall = '' 21 26 set -x 22 - rpath=`patchelf --print-rpath $out/bin/partitionmanager-bin`:${qt4}/lib 27 + rpath=`patchelf --print-rpath $out/bin/partitionmanager-bin`:${qt4}/lib 23 28 for p in $out/bin/partitionmanager-bin; do 24 29 patchelf --set-rpath $rpath $p 25 30 done 26 31 ''; 27 32 28 - meta = { 33 + meta = { 29 34 description = "Utility program to help you manage the disk devices"; 30 35 homepage = http://www.kde-apps.org/content/show.php/KDE+Partition+Manager?content=89595; # ? 31 36 license = "GPL";