nixpkgs/pkgs/applications/graphics/leocad/default.nix

32 lines
767 B
Nix
Raw Normal View History

2015-01-22 21:39:39 -08:00
/*
To use aditional parts libraries
set the variable LEOCAD_LIB=/path/to/libs/ or use option -l /path/to/libs/
*/
2017-03-18 17:32:30 -07:00
{ stdenv, fetchFromGitHub, qt4, qmake4Hook, zlib }:
2015-01-22 21:39:39 -08:00
stdenv.mkDerivation rec {
name = "leocad-${version}";
2017-12-29 16:42:19 -08:00
version = "17.07";
2015-01-22 21:39:39 -08:00
2017-03-18 17:32:30 -07:00
src = fetchFromGitHub {
owner = "leozide";
repo = "leocad";
rev = "v${version}";
2017-12-29 16:42:19 -08:00
sha256 = "1j361pvxywi4nb2alhnnd4qpqrpg6503gbi17cadcdi434gbqbsd";
2015-01-22 21:39:39 -08:00
};
2017-03-18 17:32:30 -07:00
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ qt4 zlib ];
postPatch = ''
2016-04-16 16:29:11 -07:00
export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out"
2017-03-19 11:17:21 -07:00
'';
2015-01-22 21:39:39 -08:00
meta = with stdenv.lib; {
description = "CAD program for creating virtual LEGO models";
homepage = http://www.leocad.org/;
license = licenses.gpl2;
inherit (qt4.meta) platforms;
};
}