2015-12-20 01:36:38 +01:00
|
|
|
{ stdenv, fetchgit, libpng, python3, boost, mesa, qtbase, ncurses }:
|
2015-05-31 21:18:17 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
gitRev = "745eca3a2d2657c495d5509e9083c884e021d09c";
|
|
|
|
gitBranch = "master";
|
|
|
|
gitTag = "0.8.0b";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "antimony-${version}";
|
|
|
|
version = gitTag;
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/mkeeter/antimony.git";
|
|
|
|
rev = gitRev;
|
|
|
|
sha256 = "19ir3y5ipmfyygcn8mbxika4j3af6dfrv54dvhn6maz7dy8h30f4";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./paths-fix.patch ];
|
2016-03-10 18:58:28 +01:00
|
|
|
# fix build with glibc-2.23
|
|
|
|
postPatch = ''
|
|
|
|
sed 's/\<isinf(/std::isinf(/g' -i \
|
|
|
|
src/export/export_heightmap.cpp \
|
|
|
|
src/fab/types/bounds.cpp \
|
|
|
|
src/graph/hooks/meta.cpp \
|
|
|
|
src/ui/dialogs/resolution_dialog.cpp \
|
|
|
|
src/render/render_task.cpp
|
|
|
|
'';
|
2015-05-31 21:18:17 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpng python3 (boost.override { python = python3; })
|
2015-12-20 01:36:38 +01:00
|
|
|
mesa qtbase ncurses
|
2015-05-31 21:18:17 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export GITREV=${gitRev}
|
|
|
|
export GITBRANCH=${gitBranch}
|
|
|
|
export GITTAG=${gitTag}
|
|
|
|
|
|
|
|
cd qt
|
|
|
|
export sourceRoot=$sourceRoot/qt
|
|
|
|
qmake antimony.pro PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|