lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 18.09-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl, qt4, qmake4Hook, muparser, which, boost, pkgconfig }: 2 3stdenv.mkDerivation rec { 4 version = "2.1.3"; 5 name = "librecad-${version}"; 6 7 src = fetchurl { 8 url = "https://github.com/LibreCAD/LibreCAD/tarball/${version}"; 9 name = name + ".tar.gz"; 10 sha256 = "1czp8bja61hfav2m7184cq1np1n76w3w6vn0hlkp81hhz9zc62sx"; 11 }; 12 13 patchPhase = '' 14 sed -i -e s,/bin/bash,`type -P bash`, scripts/postprocess-unix.sh 15 sed -i -e s,/usr/share,$out/share, librecad/src/lib/engine/rs_system.cpp 16 ''; 17 18 qmakeFlags = [ "MUPARSER_DIR=${muparser}" "BOOST_DIR=${boost.dev}" ]; 19 20 installPhase = '' 21 mkdir -p $out/bin $out/share 22 cp -R unix/librecad $out/bin 23 cp -R unix/resources $out/share/librecad 24 ''; 25 26 buildInputs = [ qt4 muparser which boost ]; 27 nativeBuildInputs = [ pkgconfig qmake4Hook ]; 28 29 enableParallelBuilding = true; 30 31 meta = { 32 description = "A 2D CAD package based upon Qt"; 33 homepage = https://librecad.org; 34 repositories.git = git://github.com/LibreCAD/LibreCAD.git; 35 license = stdenv.lib.licenses.gpl2; 36 maintainers = with stdenv.lib.maintainers; [viric]; 37 platforms = with stdenv.lib.platforms; linux; 38 }; 39}