2012-11-28 10:25:08 +00:00
|
|
|
{ stdenv, fetchurl, qt4, muparser, which}:
|
2012-01-03 21:14:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-02-14 19:47:57 +00:00
|
|
|
name = "librecad-1.0.4";
|
2012-01-03 21:14:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-14 19:47:57 +00:00
|
|
|
url = https://github.com/LibreCAD/LibreCAD/tarball/v1.0.4;
|
|
|
|
name = "librecad-1.0.4.tar.gz";
|
|
|
|
sha256 = "00nzbijw7pn1zkj4256da501xcm6rkcvycpa79y6dr2p6c43yc6m";
|
2012-01-03 21:14:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/bin/bash,`type -P bash`, scripts/postprocess-unix.sh
|
2012-11-28 10:25:08 +00:00
|
|
|
sed -i -e s,/usr/share,$out/share, src/lib/engine/rs_system.cpp
|
2012-01-03 21:14:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = "qmake PREFIX=$out";
|
|
|
|
|
2012-11-28 10:25:08 +00:00
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/bin $out/share
|
2012-11-28 10:25:08 +00:00
|
|
|
cp -R unix/librecad $out/bin
|
|
|
|
cp -R unix/resources $out/share/librecad
|
|
|
|
'';
|
2012-01-03 21:14:14 +00:00
|
|
|
|
2012-11-28 10:25:08 +00:00
|
|
|
buildInputs = [ qt4 muparser which ];
|
2012-01-03 21:14:14 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A 2D CAD package based upon Qt";
|
|
|
|
homepage = http://librecad.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-11-28 10:25:08 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2012-01-03 21:14:14 +00:00
|
|
|
};
|
|
|
|
}
|