mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
c20cc6d0b3
Putting information in external JSON files is IMHO not an improvement over the idiomatic style of Nix expressions. The use of JSON doesn't add anything over Nix expressions (in fact it removes expressive power). And scattering package info over lots of little files makes packages less readable over having the info in one file.
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{stdenv, fetchgit, cmake, ninja, boost, libpng, glfw3, epoxy, guile, pkgconfig
|
|
, mesa, libX11, libpthreadstubs, libXau, libXdmcp, libXrandr, libXext
|
|
, libXinerama, libXxf86vm, libXcursor, libXfixes
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
version = "0.0pre20160820";
|
|
name = "ao-${version}";
|
|
buildInputs = [
|
|
cmake ninja boost libpng glfw3 epoxy guile pkgconfig mesa libX11
|
|
libpthreadstubs libXau libXdmcp libXrandr libXext libXinerama libXxf86vm
|
|
libXcursor libXfixes
|
|
];
|
|
|
|
src = fetchgit {
|
|
url = https://github.com/mkeeter/ao;
|
|
rev = "69fadb81543cc9031e4a7ec2036c7f2ab505a620";
|
|
sha256 = "1717k72vr0i5j7bvxmd6q16fpvkljnqfa1hr3i4yq8cjdsj69my7";
|
|
};
|
|
|
|
cmakeFlags = "-G Ninja";
|
|
buildPhase = "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;
|
|
};
|
|
}
|