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

27 lines
741 B
Nix
Raw Normal View History

2014-11-04 09:14:19 +00:00
{stdenv, fetchgit, qt5, cgal, boost, gmp, mpfr, flex, bison, dxflib, readline }:
stdenv.mkDerivation rec {
2014-11-04 09:14:19 +00:00
version = "0.9.5";
name = "rapcad-${version}";
src = fetchgit {
2013-07-18 18:42:04 +01:00
url = "https://github.com/GilesBathgate/RapCAD.git";
rev = "refs/tags/v${version}";
2014-11-04 09:14:19 +00:00
sha256 = "15c18jvgbwyrfhv7r35ih0gzx35vjlsbi984h1sckgh2z17hjq8l";
};
2015-03-24 15:31:27 +00:00
buildInputs = [qt5.base cgal boost gmp mpfr flex bison dxflib readline ];
configurePhase = ''
qmake;
sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
'';
meta = {
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [raskin];
platforms = stdenv.lib.platforms.linux;
description = ''Constructive solid geometry package'';
};
}