2015-01-23 06:39:39 +01:00
|
|
|
/*
|
|
|
|
To use aditional parts libraries
|
|
|
|
set the variable LEOCAD_LIB=/path/to/libs/ or use option -l /path/to/libs/
|
|
|
|
*/
|
|
|
|
|
2017-03-19 01:32:30 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qt4, qmake4Hook, zlib }:
|
2015-01-23 06:39:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "leocad-${version}";
|
2018-02-27 05:06:31 +01:00
|
|
|
version = "18.02";
|
2015-01-23 06:39:39 +01:00
|
|
|
|
2017-03-19 01:32:30 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leozide";
|
|
|
|
repo = "leocad";
|
|
|
|
rev = "v${version}";
|
2018-02-27 05:06:31 +01:00
|
|
|
sha256 = "0rb4kjyrr9ry85cfpbk52l19vvwn7lrh2kmj2lwq531smnygn5m3";
|
2015-01-23 06:39:39 +01:00
|
|
|
};
|
|
|
|
|
2017-03-19 01:32:30 +01:00
|
|
|
nativeBuildInputs = [ qmake4Hook ];
|
|
|
|
buildInputs = [ qt4 zlib ];
|
2016-03-26 14:56:06 +01:00
|
|
|
postPatch = ''
|
2016-04-17 01:29:11 +02:00
|
|
|
export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out"
|
2017-03-19 19:17:21 +01:00
|
|
|
'';
|
2015-01-23 06:39:39 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CAD program for creating virtual LEGO models";
|
2018-03-25 07:04:25 +02:00
|
|
|
homepage = https://www.leocad.org/;
|
2015-01-23 06:39:39 +01:00
|
|
|
license = licenses.gpl2;
|
2017-12-30 02:02:04 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-23 06:39:39 +01:00
|
|
|
};
|
|
|
|
}
|