forked from mirrors/nixpkgs
a793b31caa
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/calamares/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/krqvinap3lgbn4ka1qnshi9mxvlj9syl-calamares-3.2.1/bin/calamares had a zero exit code or showed the expected version - 0 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 3.2.1 with grep in /nix/store/krqvinap3lgbn4ka1qnshi9mxvlj9syl-calamares-3.2.1 - directory tree listing: https://gist.github.com/9765935d9d60806e75255e4a33bbba21 - du listing: https://gist.github.com/c356abacb504a32f4376ca8fd2e58638
65 lines
2.2 KiB
Nix
65 lines
2.2 KiB
Nix
{ stdenv, fetchurl, boost, cmake, extra-cmake-modules, kparts, kpmcore
|
|
, kservice, libatasmart, libxcb, libyamlcpp, parted, polkit-qt, python, qtbase
|
|
, qtquickcontrols, qtsvg, qttools, qtwebengine, utillinux, glibc, tzdata
|
|
, ckbcomp, xkeyboard_config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "calamares";
|
|
version = "3.2.1";
|
|
|
|
# release including submodule
|
|
src = fetchurl {
|
|
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/${name}.tar.gz";
|
|
sha256 = "06i1fivcdzdf6fzj4db3izqcgy5q4wwgsmlx24szi88rd2j6prx9";
|
|
};
|
|
|
|
buildInputs = [
|
|
boost cmake extra-cmake-modules kparts.dev kpmcore.out kservice.dev
|
|
libatasmart libxcb libyamlcpp parted polkit-qt python qtbase
|
|
qtquickcontrols qtsvg qttools qtwebengine.dev utillinux
|
|
];
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
cmakeFlags = [
|
|
"-DPYTHON_LIBRARY=${python}/lib/libpython${python.majorVersion}m.so"
|
|
"-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
|
|
"-DCMAKE_VERBOSE_MAKEFILE=True"
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DWITH_PYTHONQT:BOOL=ON"
|
|
];
|
|
|
|
POLKITQT-1_POLICY_FILES_INSTALL_DIR = "$(out)/share/polkit-1/actions";
|
|
|
|
patchPhase = ''
|
|
sed -e "s,/usr/bin/calamares,$out/bin/calamares," \
|
|
-i calamares.desktop \
|
|
-i com.github.calamares.calamares.policy
|
|
|
|
sed -e 's,/usr/share/zoneinfo,${tzdata}/share/zoneinfo,' \
|
|
-i src/modules/locale/timezonewidget/localeconst.h \
|
|
-i src/modules/locale/SetTimezoneJob.cpp
|
|
|
|
sed -e 's,/usr/share/i18n/locales,${glibc.out}/share/i18n/locales,' \
|
|
-i src/modules/locale/timezonewidget/localeconst.h
|
|
|
|
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
|
|
|
|
sed -e 's,"ckbcomp","${ckbcomp}/bin/ckbcomp",' \
|
|
-i src/modules/keyboard/keyboardwidget/keyboardpreview.cpp
|
|
|
|
sed "s,\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR},''${out}/share/polkit-1/actions," \
|
|
-i CMakeLists.txt
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Distribution-independent installer framework";
|
|
license = licenses.gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ manveru ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|