19 src = fetchFromGitHub {
23 sha256 = "sha256-Vj6nvOfmhzou2hhmujm47a7aKBzmgchDb/BbwCb3/hI=";
41 "MUPARSER_DIR=${muparser}"
42 "BOOST_DIR=${boost.dev}"
46 substituteInPlace scripts/postprocess-unix.sh \
47 --replace /bin/sh ${runtimeShell}
49 substituteInPlace librecad/src/main/qc_applicationwindow.cpp \
57 install -Dm555 -t $out/bin unix/{librecad,ttf2lff}
58 install -Dm444 -t $out/share/applications desktop/librecad.desktop
59 install -Dm644 -t $out/share/pixmaps librecad/res/main/librecad.png
60 install -Dm444 desktop/librecad.sharedmimeinfo $out/share/mime/packages/librecad.xml
61 install -Dm444 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
62 $out/share/icons/hicolor/scalable/apps/librecad.svg
64 installManPage desktop/librecad.?
66 cp -R unix/resources $out/share/librecad
72 description = "2D CAD package based on Qt";
73 homepage = "https://librecad.org";
74 license = licenses.gpl2Only;
76 platforms = platforms.linux;