uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/games/naev/default.nix
Normal file
42
pkgs/games/naev/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkg-config, libvorbis
|
||||
, libpng, libGLU, libGL, makeWrapper, zlib, freetype }:
|
||||
|
||||
let
|
||||
pname = "naev";
|
||||
version = "0.5.0";
|
||||
name = "${pname}-${version}";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit name;
|
||||
|
||||
srcData = fetchurl {
|
||||
url = "mirror://sourceforge/naev/ndata-${version}";
|
||||
sha256 = "0l05xxbbys3j5h6anvann2vylhp6hnxnzwpcaydaff8fpbbyi6r6";
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/naev/${name}.tar.bz2";
|
||||
sha256 = "0gahi91lmpra0wvxsz49zwwb28q9w2v1s3y7r70252hq6v80kanb";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng libGLU libGL zlib freetype ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
|
||||
NIX_CFLAGS_COMPILE="-include ${zlib.dev}/include/zlib.h";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/naev
|
||||
cp -v $srcData $out/share/naev/ndata
|
||||
wrapProgram $out/bin/naev --add-flags $out/share/naev/ndata
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "2D action/rpg space game";
|
||||
homepage = "http://www.naev.org";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [viric];
|
||||
platforms = lib.platforms.linux;
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue