2016-08-21 00:55:30 +02:00
|
|
|
{stdenv, fetchgit, cmake, ninja, boost, libpng, glfw3, epoxy, guile, pkgconfig
|
2018-02-24 14:12:44 +01:00
|
|
|
, libGLU_combined, libX11, libpthreadstubs, libXau, libXdmcp, libXrandr, libXext
|
2016-08-21 00:55:30 +02:00
|
|
|
, libXinerama, libXxf86vm, libXcursor, libXfixes
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.0pre20160820";
|
|
|
|
name = "ao-${version}";
|
2017-09-14 21:24:37 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-08-21 00:55:30 +02:00
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
cmake ninja boost libpng glfw3 epoxy guile libGLU_combined libX11
|
2016-08-21 00:55:30 +02:00
|
|
|
libpthreadstubs libXau libXdmcp libXrandr libXext libXinerama libXxf86vm
|
|
|
|
libXcursor libXfixes
|
2017-09-14 21:24:37 +02:00
|
|
|
];
|
2017-01-30 11:18:56 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/mkeeter/ao;
|
|
|
|
rev = "69fadb81543cc9031e4a7ec2036c7f2ab505a620";
|
|
|
|
sha256 = "1717k72vr0i5j7bvxmd6q16fpvkljnqfa1hr3i4yq8cjdsj69my7";
|
|
|
|
};
|
|
|
|
|
2016-08-21 00:55:30 +02:00
|
|
|
cmakeFlags = "-G Ninja";
|
|
|
|
installPhase = ''
|
|
|
|
ninja install
|
|
|
|
cd ..
|
|
|
|
cp lib/lib* bind/lib* "$out/lib"
|
|
|
|
cp -r bin "$out/bin"
|
|
|
|
mkdir "$out/doc"
|
|
|
|
cp -r doc "$out/doc/ao"
|
|
|
|
cp -r examples "$out/doc/ao/examples"
|
|
|
|
cp -r bind "$out/bind"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = ''Homoiconic CAD package'';
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus ; # Some parts can be extracted and used under LGPL2+
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-04-10 22:27:14 +02:00
|
|
|
broken = true; # 2018-04-10
|
2016-08-21 00:55:30 +02:00
|
|
|
};
|
|
|
|
}
|