3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/antimony/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2016-07-09 11:14:04 +01:00
{ stdenv, fetchFromGitHub, libpng, python3, boost, mesa, qtbase, ncurses, cmake, flex, lemon }:
2015-05-31 20:18:17 +01:00
let
2016-07-09 11:14:04 +01:00
gitRev = "e8480c718e8c49ae3cc2d7af10ea93ea4c2fff9a";
2015-05-31 20:18:17 +01:00
gitBranch = "master";
2016-07-09 11:14:04 +01:00
gitTag = "0.9.2";
2015-05-31 20:18:17 +01:00
in
stdenv.mkDerivation rec {
name = "antimony-${version}";
version = gitTag;
2016-07-09 11:14:04 +01:00
src = fetchFromGitHub {
owner = "mkeeter";
repo = "antimony";
rev = gitTag;
sha256 = "0fpgy5cb4knz2z9q078206k8wzxfs8b9g76mf4bz1ic77931ykjz";
2015-05-31 20:18:17 +01:00
};
patches = [ ./paths-fix.patch ];
2016-07-09 11:14:04 +01: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
'';
2015-05-31 20:18:17 +01:00
buildInputs = [
libpng python3 (boost.override { python = python3; })
2015-12-20 00:36:38 +00:00
mesa 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
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;
};
}