18 version = "2.2.0-rc2";
20 src = fetchFromGitHub {
24 sha256 = "sha256-RNg7ioMriH4A7V65+4mh8NhsUHs/8IbTt38nVkYilCE=";
29 url = "https://github.com/LibreCAD/LibreCAD/pull/1465/commits/4edcbe72679f95cb60979c77a348c1522a20b0f4.patch";
30 sha256 = "sha256-P0G2O5sL7Ip860ByxFQ87TfV/lq06wCQnzPxADGqFPs=";
31 name = "CVE-2021-45342.patch";
36 substituteInPlace scripts/postprocess-unix.sh \
37 --replace /bin/sh ${runtimeShell}
39 substituteInPlace librecad/src/lib/engine/rs_system.cpp \
40 --replace /usr/share $out/share
42 substituteInPlace librecad/src/main/qc_applicationwindow.cpp \
47 "MUPARSER_DIR=${muparser}"
48 "BOOST_DIR=${boost.dev}"
54 install -Dm555 -t $out/bin unix/{librecad,ttf2lff}
55 install -Dm444 -t $out/share/applications desktop/librecad.desktop
56 install -Dm644 -t $out/share/pixmaps librecad/res/main/librecad.png
57 install -Dm444 desktop/librecad.sharedmimeinfo $out/share/mime/packages/librecad.xml
58 install -Dm444 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
59 $out/share/icons/hicolor/scalable/apps/librecad.svg
61 installManPage desktop/librecad.?
63 cp -R unix/resources $out/share/librecad
83 description = "2D CAD package based on Qt";
84 homepage = "https://librecad.org";
85 license = licenses.gpl2Only;
86 maintainers = with maintainers; [ kiwi viric ];
87 platforms = platforms.linux;