mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
naev-0.5.0
svn path=/nixpkgs/trunk/; revision=31214
This commit is contained in:
parent
98e4666dcd
commit
5ca5a0242a
@ -1,25 +1,33 @@
|
||||
{ fetchurl, stdenv, lua5, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis
|
||||
, libpng, mesa, makeWrapper }:
|
||||
{ fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis
|
||||
, libpng, mesa, makeWrapper, zlib }:
|
||||
|
||||
let
|
||||
pname = "naev";
|
||||
version = "0.5.0";
|
||||
name = "${pname}-${version}";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "naev-0.5.0beta1";
|
||||
inherit name;
|
||||
|
||||
srcData = fetchurl {
|
||||
url = http://naev.googlecode.com/files/ndata-0.5.0-beta1;
|
||||
sha256 = "0pqys1wdlxa336i9gjxfkgnq42xrbvq58ym66y0aa9xm92vr53f6";
|
||||
url = "mirror://sourceforge/naev/ndata-${version}";
|
||||
sha256 = "0l05xxbbys3j5h6anvann2vylhp6hnxnzwpcaydaff8fpbbyi6r6";
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = http://naev.googlecode.com/files/naev-0.5.0-beta1.tar.bz2;
|
||||
sha256 = "1nkwjclfjypgdcfbfqkiidsvi0zfjvkcj0dgnrbj1g11rr6kd3wm";
|
||||
url = "mirror://sourceforge/naev/${name}.tar.bz2";
|
||||
sha256 = "0gahi91lmpra0wvxsz49zwwb28q9w2v1s3y7r70252hq6v80kanb";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL lua5 SDL_mixer openal libxml2 pkgconfig libvorbis
|
||||
libpng mesa makeWrapper ];
|
||||
buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng mesa zlib ];
|
||||
|
||||
buildNativeInputs = [ pkgconfig makeWrapper ];
|
||||
|
||||
NIX_CFLAGS_COMPILE="-include ${zlib}/include/zlib.h";
|
||||
|
||||
postInstall = ''
|
||||
ensureDir $out/share/naev
|
||||
cp $srcData $out/share/naev/ndata
|
||||
cp -v $srcData $out/share/naev/ndata
|
||||
wrapProgram $out/bin/naev --add-flags $out/share/naev/ndata
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user