diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2012-12-10 09:47:55 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2012-12-11 09:53:25 +0100 |
commit | 0f7dee47a11dfe982d43a3b61b70f2e3feab7e38 (patch) | |
tree | 9586ade62a7e2a9fb2db71c4f0183a5006630caa /pkgs/applications/misc/librecad | |
parent | ce5ba30f64854d7001abca3bd13bcda410ea11c7 (diff) | |
download | nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar.gz nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar.bz2 nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar.lz nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar.xz nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.tar.zst nixpkgs-0f7dee47a11dfe982d43a3b61b70f2e3feab7e38.zip |
librecad: adding its 2.0 beta version too
Diffstat (limited to 'pkgs/applications/misc/librecad')
-rw-r--r-- | pkgs/applications/misc/librecad/2.0.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/librecad/2.0.nix b/pkgs/applications/misc/librecad/2.0.nix new file mode 100644 index 00000000000..2394d116314 --- /dev/null +++ b/pkgs/applications/misc/librecad/2.0.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, qt4, muparser, which, boost}: + +stdenv.mkDerivation { + name = "librecad-2.0.0beta1"; + + src = fetchurl { + url = https://github.com/LibreCAD/LibreCAD/tarball/2.0.0beta1; + name = "librecad-2.0.0beta1.tar.gz"; + sha256 = "8bf969b79be115f3b3ff72cc030a4c21fe93164dd0cb19ddfb78a7d66b8bc770"; + }; + + patchPhase = '' + sed -i -e s,/bin/bash,`type -P bash`, scripts/postprocess-unix.sh + sed -i -e s,/usr/share,$out/share, librecad/src/lib/engine/rs_system.cpp + ''; + + configurePhase = '' + qmake librecad.pro PREFIX=$out MUPARSER_DIR=${muparser} BOOST_DIR=${boost} + ''; + + installPhase = '' + ensureDir $out/bin $out/share + cp -R unix/librecad $out/bin + cp -R unix/resources $out/share/librecad + ''; + + buildInputs = [ qt4 muparser which boost ]; + + enableParallelBuilding = true; + + meta = { + description = "A 2D CAD package based upon Qt"; + homepage = http://librecad.org; + license = "GPLv2"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} |