2018-09-10 21:17:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libpng, python3
|
|
|
|
, libGLU_combined, qtbase, ncurses
|
|
|
|
, cmake, flex, lemon
|
|
|
|
}:
|
2015-05-31 20:18:17 +01:00
|
|
|
|
|
|
|
let
|
2019-02-22 16:08:16 +00:00
|
|
|
gitRev = "c0038e3ea82fec6119de364bcbc3370955ed46a2";
|
2018-09-10 21:17:00 +01:00
|
|
|
gitBranch = "develop";
|
2018-02-06 15:01:01 +00:00
|
|
|
gitTag = "0.9.3";
|
|
|
|
in
|
2015-05-31 20:18:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "antimony-${version}";
|
2019-02-22 16:08:16 +00:00
|
|
|
version = "2018-10-20";
|
2015-05-31 20:18:17 +01:00
|
|
|
|
2016-07-09 11:14:04 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-09-10 21:17:00 +01:00
|
|
|
owner = "mkeeter";
|
|
|
|
repo = "antimony";
|
|
|
|
rev = gitRev;
|
2019-02-22 16:08:16 +00:00
|
|
|
sha256 = "01cjcjppbb0gvh6npcsaidzpfcfzrqhhi07z4v0jkfyi0fl125v4";
|
2015-05-31 20:18:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./paths-fix.patch ];
|
2016-07-09 11:14:04 +01:00
|
|
|
|
2016-03-10 17:58:28 +00:00
|
|
|
postPatch = ''
|
2018-09-10 21:17:00 +01:00
|
|
|
sed -i "s,/usr/local,$out,g" \
|
|
|
|
app/CMakeLists.txt app/app/app.cpp app/app/main.cpp
|
2019-01-20 12:59:04 +00:00
|
|
|
sed -i "s,python3,${python3.executable}," CMakeLists.txt
|
2016-03-10 17:58:28 +00:00
|
|
|
'';
|
2015-05-31 20:18:17 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2018-09-10 21:17:00 +01:00
|
|
|
libpng python3 python3.pkgs.boost
|
2018-02-24 13:12:44 +00:00
|
|
|
libGLU_combined qtbase ncurses
|
2015-05-31 20:18:17 +01:00
|
|
|
];
|
|
|
|
|
2016-07-09 11:14:04 +01:00
|
|
|
nativeBuildInputs = [ cmake flex lemon ];
|
2015-05-31 20:18:17 +01:00
|
|
|
|
2016-07-09 11:14:04 +01:00
|
|
|
cmakeFlags= [
|
|
|
|
"-DGITREV=${gitRev}"
|
|
|
|
"-DGITTAG=${gitTag}"
|
|
|
|
"-DGITBRANCH=${gitBranch}"
|
|
|
|
];
|
2015-05-31 20:18:17 +01:00
|
|
|
|
2016-03-10 17:58:28 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-31 20:18:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A computer-aided design (CAD) tool from a parallel universe";
|
|
|
|
homepage = "https://github.com/mkeeter/antimony";
|
|
|
|
license = licenses.mit;
|
2018-09-10 21:17:00 +01:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
2015-05-31 20:18:17 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|