Adding Wings 3D (as a side effect, update erlang, and add esdl).
svn path=/nixpkgs/trunk/; revision=22436
This commit is contained in:
parent
e312c443fc
commit
5b4e3a5b40
40
pkgs/applications/graphics/wings/default.nix
Normal file
40
pkgs/applications/graphics/wings/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ fetchurl, stdenv, erlang, esdl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "wings-1.3.0.1";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/wings/${name}.tar.bz2";
|
||||||
|
sha256 = "1zab1qxhgrncwqj1xg6z08m0kqbkdiqp4777p1bv2kczcf31isyp";
|
||||||
|
};
|
||||||
|
|
||||||
|
ERL_LIBS = "${esdl}/lib/erlang/addons";
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i 's,include("sdl_keyboard.hrl"),include_lib("esdl/include/sdl_keyboard.hrl"),' \
|
||||||
|
src/wings_body.erl plugins_src/commands/wpc_constraints.erl
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ erlang esdl ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir $out/bin $out/lib/${name}/ebin
|
||||||
|
cp ebin/* $out/lib/${name}/ebin
|
||||||
|
cp -R fonts textures shaders plugins $out/lib/$name
|
||||||
|
cat << EOF > $out/bin/wings
|
||||||
|
#!/bin/sh
|
||||||
|
export ROOTDIR=$out/lib/erlang/addons/${name}
|
||||||
|
${erlang}/bin/erl -smp disable -pa ${esdl}/lib/erlang/addons/${esdl.name}/ebin \
|
||||||
|
-pa $out/lib/${name}/ebin -run wings_start start_halt "$@"
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/wings
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.wings3d.com/;
|
||||||
|
description = "Subdivision modeler inspired by Nendo and Mirai from Izware";
|
||||||
|
license = "BSD";
|
||||||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
args: with args;
|
args: with args;
|
||||||
|
|
||||||
let version = "R13B"; in
|
let version = "R14A"; in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "erlang-" + version;
|
name = "erlang-" + version;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz";
|
url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz";
|
||||||
sha256 = "112889v9axhrk9x9swcgql5kpj19p14504m06h4n7b99irzxf4rg";
|
sha256 = "170n5p6al1bxwngdmafm1c6892xjxppb96gzgki9gfb0mla6li73";
|
||||||
};
|
};
|
||||||
buildInputs = [perl gnum4 ncurses openssl];
|
buildInputs = [perl gnum4 ncurses openssl];
|
||||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||||
|
23
pkgs/development/libraries/esdl/default.nix
Normal file
23
pkgs/development/libraries/esdl/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{stdenv, fetchurl, SDL, mesa, erlang}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "esdl-1.0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/esdl/${name}.src.tar.gz";
|
||||||
|
sha256 = "0zc7cmr44v10sb593dismdm5qc2v7sm3z9yh22g4r9g6asbg5z0n";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ erlang ];
|
||||||
|
propagatedBuildInputs = [ SDL mesa ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export makeFlags="INSTALLDIR=$out/lib/erlang/addons/${name}";
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://esdl.sourceforge.net/;
|
||||||
|
description = "Erlang binding to SDL that includes a binding to OpenGL";
|
||||||
|
license = "BSD";
|
||||||
|
};
|
||||||
|
}
|
@ -3745,6 +3745,10 @@ let
|
|||||||
inherit fetchurl stdenv libp11 pkgconfig openssl;
|
inherit fetchurl stdenv libp11 pkgconfig openssl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
esdl = import ../development/libraries/esdl {
|
||||||
|
inherit stdenv fetchurl erlang SDL mesa;
|
||||||
|
};
|
||||||
|
|
||||||
exiv2 = import ../development/libraries/exiv2 {
|
exiv2 = import ../development/libraries/exiv2 {
|
||||||
inherit fetchurl stdenv zlib;
|
inherit fetchurl stdenv zlib;
|
||||||
};
|
};
|
||||||
@ -8882,6 +8886,10 @@ let
|
|||||||
graphicsSupport = false;
|
graphicsSupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wings = import ../applications/graphics/wings {
|
||||||
|
inherit stdenv fetchurl erlang esdl;
|
||||||
|
};
|
||||||
|
|
||||||
# I'm keen on wmiimenu only >wmii-3.5 no longer has it...
|
# I'm keen on wmiimenu only >wmii-3.5 no longer has it...
|
||||||
wmiimenu = import ../applications/window-managers/wmii31 {
|
wmiimenu = import ../applications/window-managers/wmii31 {
|
||||||
libixp = libixp_for_wmii;
|
libixp = libixp_for_wmii;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user