Skip to content

Commit 48192c6

Browse files
Peter Hoegpeterhoeg
Peter Hoeg
authored andcommittedMay 11, 2017
partition-manager: init at 3.0.1
Includes kpmcore 3.0.3
1 parent 9498f5c commit 48192c6

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{ stdenv, lib, fetchurl, extra-cmake-modules, pkgconfig
2+
, qtbase, kdeFrameworks
3+
, eject, libatasmart, parted }:
4+
5+
let
6+
pname = "kpmcore";
7+
8+
in stdenv.mkDerivation rec {
9+
name = "${pname}-${version}";
10+
version = "3.0.3";
11+
12+
src = fetchurl {
13+
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
14+
sha256 = "17lqrp39w31fm7haigwq23cp92zwk3czjzqa2fhn3wafx3vafwd2";
15+
};
16+
17+
buildInputs = [
18+
qtbase
19+
eject # this is to get libblkid
20+
libatasmart
21+
parted # we only need the library
22+
23+
kdeFrameworks.kio
24+
];
25+
nativeBuildInputs = [ extra-cmake-modules ];
26+
enableParallelBuilding = true;
27+
28+
meta = with stdenv.lib; {
29+
maintainers = with lib.maintainers; [ peterhoeg ];
30+
};
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{ kdeDerivation, kdeWrapper, fetchurl, lib
2+
, ecm, kdoctools
3+
, kconfig, kinit, kpmcore
4+
, eject, libatasmart }:
5+
6+
let
7+
pname = "partitionmanager";
8+
unwrapped = kdeDerivation rec {
9+
name = "${pname}-${version}";
10+
version = "3.0.1";
11+
12+
src = fetchurl {
13+
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
14+
sha256 = "08sb9xa7dvvgha3k2xm1srl339przxpxd2y5bh1lnx6k1x7dk410";
15+
};
16+
17+
meta = with lib; {
18+
description = "KDE Partition Manager";
19+
license = licenses.gpl2;
20+
maintainers = with maintainers; [ peterhoeg ];
21+
};
22+
nativeBuildInputs = [ ecm kdoctools ];
23+
# refer to kpmcore for the use of eject
24+
buildInputs = [ eject libatasmart ];
25+
propagatedBuildInputs = [ kconfig kinit kpmcore ];
26+
enableParallelBuilding = true;
27+
};
28+
29+
in kdeWrapper {
30+
inherit unwrapped;
31+
targets = [ "bin/partitionmanager" ];
32+
}

‎pkgs/top-level/all-packages.nix

+4
Original file line numberDiff line numberDiff line change
@@ -2577,6 +2577,8 @@ with pkgs;
25772577

25782578
knockknock = callPackage ../tools/security/knockknock { };
25792579

2580+
partition-manager = libsForQt5.callPackage ../tools/misc/partition-manager { };
2581+
25802582
kpcli = callPackage ../tools/security/kpcli { };
25812583

25822584
krename = libsForQt5.callPackage ../applications/misc/krename { };
@@ -9696,6 +9698,8 @@ with pkgs;
96969698
libva = libva-full; # also wants libva-x11
96979699
};
96989700

9701+
kpmcore = callPackage ../development/libraries/kpmcore { };
9702+
96999703
mlt = callPackage ../development/libraries/mlt/qt-5.nix {
97009704
ffmpeg = ffmpeg_2;
97019705
};

0 commit comments

Comments
 (0)
Please sign in to comment.