Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
installShellFiles,
qmake,
qttools,
qtsvg,
qtxmlpatterns,
wrapQtAppsHook,
autoPatchelfHook,
}:
stdenv.mkDerivation rec {
pname = "valentina";
version = "0.7.53";
src = fetchFromGitLab {
owner = "smart-pattern";
repo = "valentina";
rev = "v${version}";
hash = "sha256-vIlqrK7wyFaXKfvcJ3FtkAwUt6Xb/47qxcDGy1Ty2uk=";
};
postPatch = ''
substituteInPlace src/app/translations.pri \
--replace '$$[QT_INSTALL_BINS]/$$LRELEASE' '${lib.getDev qttools}/bin/lrelease'
'';
nativeBuildInputs = [
qmake
qttools
wrapQtAppsHook
installShellFiles
autoPatchelfHook
];
buildInputs = [
qtsvg
qtxmlpatterns
];
qmakeFlags = [
"-r"
"PREFIX=${placeholder "out"}"
"CONFIG+=noTests"
"CONFIG+=noRunPath"
"CONFIG+=no_ccache"
"CONFIG+=noDebugSymbols"
];
postInstall = ''
installManPage dist/debian/*.1
install -Dm644 dist/debian/valentina.sharedmimeinfo $out/share/mime/packages/valentina.xml
'';
meta = {
description = "Open source sewing pattern drafting software";
homepage = "https://smart-pattern.com.ua/";
changelog = "https://gitlab.com/smart-pattern/valentina/-/blob/v${version}/ChangeLog.txt";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}