2017-04-30 06:58:08 +01:00
|
|
|
{ stdenv, fetchurl, cmake, extra-cmake-modules, pkgconfig
|
2017-07-04 22:04:07 +01:00
|
|
|
, plasma-framework, qtbase, qttranslations
|
2017-04-30 06:58:08 +01:00
|
|
|
, qtquickcontrols ? null
|
|
|
|
, qtquickcontrols2 ? null }:
|
2016-10-17 10:32:05 +01:00
|
|
|
|
2017-04-30 06:58:08 +01:00
|
|
|
let
|
2016-10-17 10:32:05 +01:00
|
|
|
pname = "kirigami";
|
|
|
|
|
2017-04-30 06:58:08 +01:00
|
|
|
generic = { name, version, sha256, qtqc, broken }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit name version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${name}.tar.xz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2017-07-04 22:04:07 +01:00
|
|
|
buildInputs = [ plasma-framework qtbase qtqc qttranslations ];
|
2016-10-17 10:32:05 +01:00
|
|
|
|
2017-04-30 06:58:08 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig extra-cmake-modules ];
|
2016-10-17 10:32:05 +01:00
|
|
|
|
2017-04-30 06:58:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
homepage = http://www.kde.org;
|
|
|
|
maintainers = with maintainers; [ ttuegel peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
inherit broken;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
kirigami_1 = generic rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "1.1.0";
|
|
|
|
sha256 = "1p9ydggwbyfdgwmvyc8004sk9mfshlg9b83lzvz9qk3a906ayxv6";
|
|
|
|
qtqc = qtquickcontrols;
|
|
|
|
broken = false;
|
|
|
|
};
|
2016-10-17 10:32:05 +01:00
|
|
|
|
2017-04-30 06:58:08 +01:00
|
|
|
kirigami_2 = generic rec {
|
|
|
|
name = "${pname}2-${version}";
|
|
|
|
version = "2.1.0";
|
|
|
|
sha256 = "0d79h10jzv9z7xzap4k9vbw6p9as8vdkz3x6xlzx407i9sbzyi77";
|
|
|
|
qtqc = qtquickcontrols2;
|
|
|
|
broken = builtins.compareVersions qtbase.version "5.7.0" < 0;
|
2016-10-17 10:32:05 +01:00
|
|
|
};
|
|
|
|
}
|