forked from mirrors/nixpkgs
seamly2d: init at 2022-08-15.0339 (#203614)
This commit is contained in:
parent
edfdbf0122
commit
2616b5f6d5
87
pkgs/applications/graphics/seamly2d/default.nix
Normal file
87
pkgs/applications/graphics/seamly2d/default.nix
Normal file
|
@ -0,0 +1,87 @@
|
|||
{ stdenv, lib, qtbase, wrapQtAppsHook, fetchFromGitHub,
|
||||
addOpenGLRunpath, poppler_utils, qtxmlpatterns, qtsvg, mesa, gcc, xvfb-run,
|
||||
fontconfig, freetype, xorg, ccache, qmake, python3, qttools, git
|
||||
}:
|
||||
let
|
||||
qtPython = python3.withPackages (pkgs: with pkgs; [ pyqt5 ]);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "seamly2d";
|
||||
version = "2022-08-15.0339";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FashionFreedom";
|
||||
repo = "Seamly2D";
|
||||
rev = "v${version}";
|
||||
sha256 = "13jxkg84jfz8g52zwhh5jvi23wryzkavwbsfalzr9m04blj5xnik";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
git
|
||||
qtPython
|
||||
qtbase
|
||||
poppler_utils
|
||||
qtxmlpatterns
|
||||
qtsvg
|
||||
mesa
|
||||
freetype
|
||||
xorg.libXi
|
||||
xorg.libXrender
|
||||
xorg.libxcb
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
addOpenGLRunpath
|
||||
xvfb-run
|
||||
fontconfig
|
||||
wrapQtAppsHook
|
||||
qmake
|
||||
qttools
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace common.pri \
|
||||
--replace '$$[QT_INSTALL_HEADERS]/QtXmlPatterns' '${lib.getDev qtxmlpatterns}/include/QtXmlPatterns' \
|
||||
--replace '$$[QT_INSTALL_HEADERS]/QtSvg' '${lib.getDev qtsvg}/include/QtSvg' \
|
||||
--replace '$$[QT_INSTALL_HEADERS]/' '${lib.getDev qtbase}/include/' \
|
||||
--replace '$$[QT_INSTALL_HEADERS]' '${lib.getDev qtbase}'
|
||||
substituteInPlace src/app/translations.pri \
|
||||
--replace '$$[QT_INSTALL_BINS]/$$LRELEASE' '${lib.getDev qttools}/bin/lrelease'
|
||||
substituteInPlace src/app/seamly2d/mainwindowsnogui.cpp \
|
||||
--replace 'define PDFTOPS "pdftops"' 'define PDFTOPS "${lib.getBin poppler_utils}/bin/pdftops"'
|
||||
substituteInPlace src/libs/vwidgets/export_format_combobox.cpp \
|
||||
--replace 'define PDFTOPS "pdftops"' 'define PDFTOPS "${lib.getBin poppler_utils}/bin/pdftops"'
|
||||
substituteInPlace src/app/seamlyme/mapplication.cpp \
|
||||
--replace 'diagrams.rcc' '../share/diagrams.rcc'
|
||||
'';
|
||||
|
||||
qmakeFlags = [
|
||||
"PREFIX=/"
|
||||
"PREFIX_LIB=/lib"
|
||||
"Seamly2D.pro"
|
||||
"-r"
|
||||
"CONFIG+=noDebugSymbols"
|
||||
"CONFIG+=no_ccache"
|
||||
];
|
||||
|
||||
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/usr/share $out/
|
||||
rmdir $out/usr
|
||||
|
||||
mv $out/share/seamly2d/* $out/share/.
|
||||
rmdir $out/share/seamly2d
|
||||
|
||||
mkdir -p $out/share/mime/packages
|
||||
cp dist/debian/seamly2d.sharedmimeinfo $out/share/mime/packages/seamly2d.xml
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Open source patternmaking software";
|
||||
homepage = "https://seamly.net/";
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ WhittlesJr ];
|
||||
};
|
||||
}
|
|
@ -32014,6 +32014,8 @@ with pkgs;
|
|||
|
||||
rofi-vpn = callPackage ../applications/networking/rofi-vpn { };
|
||||
|
||||
seamly2d = libsForQt5.callPackage ../applications/graphics/seamly2d { };
|
||||
|
||||
ympd = callPackage ../applications/audio/ympd { };
|
||||
|
||||
# a somewhat more maintained fork of ympd
|
||||
|
|
Loading…
Reference in a new issue