2023-07-29 10:57:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, installShellFiles
|
2018-02-21 09:24:53 +00:00
|
|
|
, qmake, qttools
|
2023-07-29 10:57:50 +00:00
|
|
|
, qtsvg, qtxmlpatterns
|
2022-08-29 19:40:13 +00:00
|
|
|
, wrapQtAppsHook
|
2023-09-22 09:28:58 +00:00
|
|
|
, autoPatchelfHook
|
2018-02-21 09:24:53 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-29 19:40:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "valentina";
|
2023-09-08 23:59:37 +00:00
|
|
|
version = "0.7.52";
|
2018-02-21 09:24:53 +00:00
|
|
|
|
2022-08-29 19:40:13 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "smart-pattern";
|
|
|
|
repo = "valentina";
|
2018-11-15 17:12:55 +00:00
|
|
|
rev = "v${version}";
|
2023-09-08 23:59:37 +00:00
|
|
|
hash = "sha256-DmNRBxqyBvDTdA7Sz9X04Dhejtxx7tOVpST+SkUNguM=";
|
2018-02-21 09:24:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/app/translations.pri \
|
2022-08-29 19:40:13 +00:00
|
|
|
--replace '$$[QT_INSTALL_BINS]/$$LRELEASE' '${lib.getDev qttools}/bin/lrelease'
|
2018-02-21 09:24:53 +00:00
|
|
|
'';
|
|
|
|
|
2023-09-22 09:28:58 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook installShellFiles autoPatchelfHook ];
|
2018-02-21 09:24:53 +00:00
|
|
|
|
2022-08-29 19:40:13 +00:00
|
|
|
buildInputs = [ qtsvg qtxmlpatterns ];
|
2018-02-21 09:24:53 +00:00
|
|
|
|
2022-08-29 19:40:13 +00:00
|
|
|
qmakeFlags = [
|
|
|
|
"-r"
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"CONFIG+=noTests"
|
|
|
|
"CONFIG+=noRunPath"
|
|
|
|
"CONFIG+=no_ccache"
|
|
|
|
"CONFIG+=noDebugSymbols"
|
|
|
|
];
|
2018-02-21 09:24:53 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-08-29 19:40:13 +00:00
|
|
|
installManPage dist/debian/*.1
|
|
|
|
install -Dm644 dist/debian/valentina.sharedmimeinfo $out/share/mime/packages/valentina.xml
|
2018-02-21 09:24:53 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-29 19:40:13 +00:00
|
|
|
meta = with lib; {
|
2018-02-21 09:24:53 +00:00
|
|
|
description = "An open source sewing pattern drafting software";
|
2022-08-29 19:40:13 +00:00
|
|
|
homepage = "https://smart-pattern.com.ua/";
|
|
|
|
changelog = "https://gitlab.com/smart-pattern/valentina/-/blob/v${version}/ChangeLog.txt";
|
|
|
|
license = licenses.gpl3Plus;
|
2018-02-21 09:24:53 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-12 21:56:54 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-02-21 09:24:53 +00:00
|
|
|
};
|
|
|
|
}
|