2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libpng, python3, boost, libGLU_combined, qtbase, ncurses, cmake, flex, lemon }:
|
2015-05-31 20:18:17 +01:00
|
|
|
|
|
|
|
let
|
2018-02-06 15:01:01 +00:00
|
|
|
gitRev = "020910c25614a3752383511ede5a1f5551a8bd39";
|
2015-05-31 20:18:17 +01:00
|
|
|
gitBranch = "master";
|
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}";
|
|
|
|
version = gitTag;
|
|
|
|
|
2016-07-09 11:14:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkeeter";
|
|
|
|
repo = "antimony";
|
|
|
|
rev = gitTag;
|
2018-02-06 15:01:01 +00:00
|
|
|
sha256 = "1vm5h5py8l3b8h4pbmm8s3wlxvlw492xfwnlwx0nvl0cjs8ba6r4";
|
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 = ''
|
2016-07-09 11:14:04 +01:00
|
|
|
sed -i "s,/usr/local,$out,g" app/CMakeLists.txt app/app/app.cpp app/app/main.cpp
|
2016-03-10 17:58:28 +00:00
|
|
|
'';
|
2015-05-31 20:18:17 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpng python3 (boost.override { python = python3; })
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|