2019-10-27 09:37:06 +00:00
|
|
|
{ lib, fetchurl, boost, cmake, extra-cmake-modules, kparts, kpmcore
|
2017-12-08 23:12:26 +00:00
|
|
|
, kservice, libatasmart, libxcb, libyamlcpp, parted, polkit-qt, python, qtbase
|
2021-03-03 03:59:48 +00:00
|
|
|
, qtquickcontrols, qtsvg, qttools, qtwebengine, util-linux, tzdata
|
2019-10-27 09:37:06 +00:00
|
|
|
, ckbcomp, xkeyboard_config, mkDerivation
|
2017-12-08 23:12:26 +00:00
|
|
|
}:
|
2017-12-08 20:08:17 +00:00
|
|
|
|
2019-10-27 09:37:06 +00:00
|
|
|
mkDerivation rec {
|
2017-12-08 20:08:17 +00:00
|
|
|
pname = "calamares";
|
2021-10-29 06:11:53 +01:00
|
|
|
version = "3.2.44.3";
|
2017-12-08 20:08:17 +00:00
|
|
|
|
|
|
|
# release including submodule
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
2021-10-29 06:11:53 +01:00
|
|
|
sha256 = "sha256-p3ctULrzXPt9dNs8Ckb7cqdOBpp4qOmEwu0dEVq8lEw=";
|
2017-12-08 20:08:17 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 19:30:23 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
2017-12-08 20:08:17 +00:00
|
|
|
buildInputs = [
|
2020-12-27 19:30:23 +00:00
|
|
|
boost kparts.dev kpmcore.out kservice.dev
|
2017-12-08 23:12:26 +00:00
|
|
|
libatasmart libxcb libyamlcpp parted polkit-qt python qtbase
|
2020-11-24 15:29:28 +00:00
|
|
|
qtquickcontrols qtsvg qttools qtwebengine.dev util-linux
|
2017-12-08 20:08:17 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2019-01-03 09:05:50 +00:00
|
|
|
"-DPYTHON_LIBRARY=${python}/lib/lib${python.libPrefix}.so"
|
|
|
|
"-DPYTHON_INCLUDE_DIR=${python}/include/${python.libPrefix}"
|
2017-12-08 23:12:26 +00:00
|
|
|
"-DCMAKE_VERBOSE_MAKEFILE=True"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DWITH_PYTHONQT:BOOL=ON"
|
2017-12-08 20:08:17 +00:00
|
|
|
];
|
|
|
|
|
2017-12-08 23:12:26 +00:00
|
|
|
POLKITQT-1_POLICY_FILES_INSTALL_DIR = "$(out)/share/polkit-1/actions";
|
|
|
|
|
2020-12-27 19:30:23 +00:00
|
|
|
postPatch = ''
|
2017-12-08 23:12:26 +00:00
|
|
|
sed -e "s,/usr/bin/calamares,$out/bin/calamares," \
|
|
|
|
-i calamares.desktop \
|
|
|
|
-i com.github.calamares.calamares.policy
|
2017-12-08 20:08:17 +00:00
|
|
|
|
2017-12-08 23:12:26 +00:00
|
|
|
sed -e 's,/usr/share/zoneinfo,${tzdata}/share/zoneinfo,' \
|
|
|
|
-i src/modules/locale/SetTimezoneJob.cpp
|
2017-12-08 20:08:17 +00:00
|
|
|
|
2017-12-08 23:12:26 +00:00
|
|
|
sed -e 's,/usr/share/X11/xkb/rules/base.lst,${xkeyboard_config}/share/X11/xkb/rules/base.lst,' \
|
|
|
|
-i src/modules/keyboard/keyboardwidget/keyboardglobal.h
|
2017-12-08 20:08:17 +00:00
|
|
|
|
2017-12-08 23:12:26 +00:00
|
|
|
sed -e 's,"ckbcomp","${ckbcomp}/bin/ckbcomp",' \
|
|
|
|
-i src/modules/keyboard/keyboardwidget/keyboardpreview.cpp
|
2017-12-08 20:08:17 +00:00
|
|
|
|
2017-12-08 23:12:26 +00:00
|
|
|
sed "s,\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR},''${out}/share/polkit-1/actions," \
|
|
|
|
-i CMakeLists.txt
|
2017-12-08 20:08:17 +00:00
|
|
|
'';
|
|
|
|
|
2019-10-27 09:37:06 +00:00
|
|
|
meta = with lib; {
|
2017-12-08 20:08:17 +00:00
|
|
|
description = "Distribution-independent installer framework";
|
2020-12-27 19:30:23 +00:00
|
|
|
license = with licenses; [ gpl3Plus bsd2 ];
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
2017-12-08 20:08:17 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|