6 stdenv.mkDerivation rec {
10 url = "http://www.qcad.org/archives/dxflib/${pname}-${version}-src.tar.gz";
11 sha256 = "09yjgzh8677pzkkr7a59pql5d11451c22pxksk2my30mapxsri96";
16 dontWrapQtApps = true;
18 sed -i 's/CONFIG += staticlib/CONFIG += shared/' dxflib.pro
21 install -d -m 0755 $out/lib
23 install -d -m 0755 $out/include/dxflib
24 cp -pr src/*.h $out/include/dxflib
25 # Generate pkg-config file
26 install -d -m 0755 $out/lib/pkgconfig
27 cat << 'EOF' > $out/lib/pkgconfig/dxflib.pc
28 prefix=${placeholder "out"}
29 libdir=${placeholder "out"}/lib
30 includedir=${placeholder "out"}/include
32 Description: A C++ library for reading and writing DXF files
34 Libs: -L${placeholder "out"}/lib -ldxflib
35 Cflags: -I${placeholder "out"}/include/dxflib
41 maintainers = with lib.maintainers; [raskin];
42 platforms = lib.platforms.linux;
43 description = "DXF file format library";