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