about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2012-08-27 15:41:49 +0400
committerMichael Raskin <7c6f434c@mail.ru>2012-08-27 15:41:49 +0400
commit098b0c6a1d163c129d7850ae61e72fc84ddf4de1 (patch)
tree7f2eb9177bdefa62d448334760948187310abab1 /pkgs/applications/graphics
parent2001983746b0552fa8905288d685eb448a07695a (diff)
downloadnixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar.gz
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar.bz2
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar.lz
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar.xz
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.tar.zst
nixlib-098b0c6a1d163c129d7850ae61e72fc84ddf4de1.zip
Rapcad: add
Rapcad is a tool similar to OpenSCAD but with a richer language.
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/rapcad/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/rapcad/default.nix b/pkgs/applications/graphics/rapcad/default.nix
new file mode 100644
index 000000000000..e83824bd685a
--- /dev/null
+++ b/pkgs/applications/graphics/rapcad/default.nix
@@ -0,0 +1,26 @@
+{stdenv, fetchgit, qt4, cgal, boost, gmp, mpfr, flex, bison, dxflib}: 
+
+stdenv.mkDerivation rec {
+  version = "0.8.0";
+  name = "rapcad-${version}";
+
+  src = fetchgit {
+    url = "git://git.rapcad.org/rapcad";
+    rev = "refs/tags/v${version}";
+    sha256 = "37c7107dc4fcf8942a4ad35377c4e42e6aedfa35296e5fcf8d84882ae35087c7";
+  };
+  
+  buildInputs = [qt4 cgal boost gmp mpfr flex bison dxflib];
+
+  configurePhase = ''
+    qmake;
+    sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
+  '';
+
+  meta = {
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = with stdenv.lib.maintainers; [raskin];
+    platforms = stdenv.lib.platforms.linux;
+    description = ''Constructive solid geometry package'';
+  };
+}