nixpkgs/pkgs/applications/graphics/antimony/default.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

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