2018-02-24 14:12:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libpng, python3, boost, libGLU_combined, qtbase, ncurses, cmake, flex, lemon }:
|
2015-05-31 21:18:17 +02:00
|
|
|
|
|
|
|
let
|
2018-02-06 16:01:01 +01:00
|
|
|
gitRev = "020910c25614a3752383511ede5a1f5551a8bd39";
|
2015-05-31 21:18:17 +02:00
|
|
|
gitBranch = "master";
|
2018-02-06 16:01:01 +01:00
|
|
|
gitTag = "0.9.3";
|
|
|
|
in
|
2015-05-31 21:18:17 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "antimony-${version}";
|
|
|
|
version = gitTag;
|
|
|
|
|
2016-07-09 12:14:04 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkeeter";
|
|
|
|
repo = "antimony";
|
|
|
|
rev = gitTag;
|
2018-02-06 16:01:01 +01:00
|
|
|
sha256 = "1vm5h5py8l3b8h4pbmm8s3wlxvlw492xfwnlwx0nvl0cjs8ba6r4";
|
2015-05-31 21:18:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./paths-fix.patch ];
|
2016-07-09 12:14:04 +02:00
|
|
|
|
2016-03-10 18:58:28 +01:00
|
|
|
postPatch = ''
|
2016-07-09 12:14:04 +02:00
|
|
|
sed -i "s,/usr/local,$out,g" app/CMakeLists.txt app/app/app.cpp app/app/main.cpp
|
2016-03-10 18:58:28 +01:00
|
|
|
'';
|
2015-05-31 21:18:17 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpng python3 (boost.override { python = python3; })
|
2018-02-24 14:12:44 +01:00
|
|
|
libGLU_combined qtbase ncurses
|
2015-05-31 21:18:17 +02:00
|
|
|
];
|
|
|
|
|
2016-07-09 12:14:04 +02:00
|
|
|
nativeBuildInputs = [ cmake flex lemon ];
|
2015-05-31 21:18:17 +02:00
|
|
|
|
2016-07-09 12:14:04 +02:00
|
|
|
cmakeFlags= [
|
|
|
|
"-DGITREV=${gitRev}"
|
|
|
|
"-DGITTAG=${gitTag}"
|
|
|
|
"-DGITBRANCH=${gitBranch}"
|
|
|
|
];
|
2015-05-31 21:18:17 +02:00
|
|
|
|
2016-03-10 18:58:28 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-31 21:18:17 +02: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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|