1 { lib, stdenv, fetchFromGitLab, installShellFiles
8 stdenv.mkDerivation rec {
12 src = fetchFromGitLab {
13 owner = "smart-pattern";
16 hash = "sha256-DmNRBxqyBvDTdA7Sz9X04Dhejtxx7tOVpST+SkUNguM=";
20 substituteInPlace src/app/translations.pri \
21 --replace '$$[QT_INSTALL_BINS]/$$LRELEASE' '${lib.getDev qttools}/bin/lrelease'
24 nativeBuildInputs = [ qmake qttools wrapQtAppsHook installShellFiles autoPatchelfHook ];
26 buildInputs = [ qtsvg qtxmlpatterns ];
30 "PREFIX=${placeholder "out"}"
34 "CONFIG+=noDebugSymbols"
38 installManPage dist/debian/*.1
39 install -Dm644 dist/debian/valentina.sharedmimeinfo $out/share/mime/packages/valentina.xml
43 description = "An open source sewing pattern drafting software";
44 homepage = "https://smart-pattern.com.ua/";
45 changelog = "https://gitlab.com/smart-pattern/valentina/-/blob/v${version}/ChangeLog.txt";
46 license = licenses.gpl3Plus;
47 platforms = platforms.linux;
48 maintainers = with maintainers; [ ];