From cd96404ff96315b3cba33f5d1dbae7d38ffb2251 Mon Sep 17 00:00:00 2001 From: David Virgilio Date: Thu, 22 Jan 2015 23:39:39 -0600 Subject: [PATCH] new package: leocad --- pkgs/applications/graphics/leocad/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/graphics/leocad/default.nix diff --git a/pkgs/applications/graphics/leocad/default.nix b/pkgs/applications/graphics/leocad/default.nix new file mode 100644 index 000000000000..eaaf047c9bb3 --- /dev/null +++ b/pkgs/applications/graphics/leocad/default.nix @@ -0,0 +1,28 @@ +/* +To use aditional parts libraries +set the variable LEOCAD_LIB=/path/to/libs/ or use option -l /path/to/libs/ +*/ + +{ stdenv, fetchsvn, qt4, zlib }: + +stdenv.mkDerivation rec { + name = "leocad-${version}"; + version = "0.81"; + + src = fetchsvn { + url = "http://svn.leocad.org/tags/${name}"; + sha256 = "1190gb437ls51hhfiwa79fq131026kywpy3j3k4fkdgfr8a9v3q8"; + }; + + buildInputs = [ qt4 zlib ]; + + prefixKey="INSTALL_PREFIX="; + configureScript = "qmake leocad.pro"; + + meta = with stdenv.lib; { + description = "CAD program for creating virtual LEGO models"; + homepage = http://www.leocad.org/; + license = licenses.gpl2; + inherit (qt4.meta) platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d59b88c5772..a3a0a60d76ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1621,6 +1621,8 @@ let kst = callPackage ../tools/graphics/kst { }; + leocad = callPackage ../applications/graphics/leocad { }; + less = callPackage ../tools/misc/less { }; liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix { };