summary refs log tree commit diff
path: root/pkgs/tools/misc/partition-manager/default.nix
blob: 46be78965fbd73aa31298251f5e3ad162be8d372 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, cmake, gettext, parted, libuuid, qt4, kdelibs, kde_baseapps,
  automoc4, phonon, perl }:

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";
  };

  buildInputs =
    [ cmake gettext parted libuuid qt4 kdelibs kde_baseapps automoc4 perl phonon ];

  preConfigure = ''
    export VERBOSE=1
    cmakeFlagsArray=($cmakeFlagsArray -DGETTEXT_INCLUDE_DIR=${gettext}/include -DCMAKE_INCLUDE_PATH=${qt4}/include/QtGui )
  '';

  postInstall = ''
    set -x
    rpath=`patchelf --print-rpath $out/bin/partitionmanager-bin`:${qt4}/lib 
    for p in $out/bin/partitionmanager-bin; do
      patchelf --set-rpath $rpath $p
    done
  '';

  meta = { 
    description = "Utility program to help you manage the disk devices";
    homepage = http://www.kde-apps.org/content/show.php/KDE+Partition+Manager?content=89595; # ?
    license = "GPL";
    platforms = stdenv.lib.platforms.linux;
  };
}