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
51
pkgs/development/libraries/smpeg/default.nix
Normal file
51
pkgs/development/libraries/smpeg/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk2, m4, pkg-config, libGLU, libGL, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "smpeg-svn";
|
||||
version = "390";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "svn://svn.icculus.org/smpeg/trunk";
|
||||
rev = version;
|
||||
sha256 = "0ynwn7ih5l2b1kpzpibns9bb9wzfjak7mgrb1ji0dkn2q5pv6lr0";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./format.patch
|
||||
./gcc6.patch
|
||||
./libx11.patch
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ SDL gtk2 libGLU libGL ];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake libtool m4 pkg-config makeWrapper ];
|
||||
|
||||
preConfigure = ''
|
||||
touch NEWS AUTHORS ChangeLog
|
||||
sh autogen.sh
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
|
||||
-e 's,"SDL_mutex.h",<SDL/SDL_mutex.h>,' \
|
||||
-e 's,"SDL_audio.h",<SDL/SDL_audio.h>,' \
|
||||
-e 's,"SDL_thread.h",<SDL/SDL_thread.h>,' \
|
||||
-e 's,"SDL_types.h",<SDL/SDL_types.h>,' \
|
||||
$out/include/smpeg/*.h
|
||||
|
||||
wrapProgram $out/bin/smpeg-config \
|
||||
--prefix PATH ":" "${pkg-config}/bin" \
|
||||
--prefix PKG_CONFIG_PATH ":" "${lib.getDev SDL}/lib/pkgconfig"
|
||||
'';
|
||||
|
||||
NIX_LDFLAGS = "-lX11";
|
||||
|
||||
meta = {
|
||||
homepage = "http://icculus.org/smpeg/";
|
||||
description = "MPEG decoding library";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue