Adding a preliminary package for librecad. It fails to install still.

svn path=/nixpkgs/trunk/; revision=31255
This commit is contained in:
Lluís Batlle i Rossell 2012-01-03 21:14:14 +00:00
parent 5a78287adf
commit d028c7e00d
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl, qt4}:
stdenv.mkDerivation {
name = "librecad-1.0.0";
src = fetchurl {
url = https://github.com/LibreCAD/LibreCAD/tarball/v1.0.0;
name = "librecad-1.0.0.tar.gz";
sha256 = "0s1ikyvy98zz1vw3xf5la73n3sykib6292cmhh2z738ggwigicc9";
};
patchPhase = ''
sed -i -e s,/bin/bash,`type -P bash`, scripts/postprocess-unix.sh
'';
configurePhase = "qmake PREFIX=$out";
# It builds, but it does not install
installPhase = "exit 1";
buildInputs = [ qt4 ];
meta = {
description = "A 2D CAD package based upon Qt";
homepage = http://librecad.org;
license = "GPLv2";
};
}

View file

@ -6990,6 +6990,8 @@ let
inherit (gnome) libglade;
};
librecad = callPackage ../applications/misc/librecad { };
lingot = callPackage ../applications/audio/lingot {
inherit (gnome) libglade;
};