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
34
pkgs/development/libraries/vrb/default.nix
Normal file
34
pkgs/development/libraries/vrb/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vrb";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://vrb.sourceforge.net/download/${pname}-${version}.tar.bz2";
|
||||
sha256 = "d579ed1998ef2d78e2ef8481a748d26e1fa12cdda806d2e31d8ec66ffb0e289f";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./removed_options.patch
|
||||
./unused-but-set-variable.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/man/man3
|
||||
cp -p vrb/man/man3/*.3 $out/share/man/man3/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A virtual ring buffer library written in C";
|
||||
license = licenses.lgpl21;
|
||||
homepage = "http://vrb.sourceforge.net/";
|
||||
maintainers = [ maintainers.bobvanderlinden ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
13
pkgs/development/libraries/vrb/removed_options.patch
Normal file
13
pkgs/development/libraries/vrb/removed_options.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/configure 2010-10-05 16:32:59.000000000 +0200
|
||||
+++ b/configure 2010-10-05 16:33:08.000000000 +0200
|
||||
@@ -341,8 +341,8 @@
|
||||
pgm_warn=( "${pgm_warn[@]}" -Winline )
|
||||
fi
|
||||
|
||||
-lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
|
||||
-pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
|
||||
+lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
|
||||
+pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
|
||||
|
||||
lib_cp_opt=( -pipe )
|
||||
pgm_cp_opt=( -pipe )
|
||||
19
pkgs/development/libraries/vrb/unused-but-set-variable.patch
Normal file
19
pkgs/development/libraries/vrb/unused-but-set-variable.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--- a/vrb/src/bin/vbuf.c1 2011-06-13 22:14:24.000000000 +0200
|
||||
+++ b/vrb/src/bin/vbuf.c 2011-06-13 22:14:43.000000000 +0200
|
||||
@@ -426,7 +426,6 @@
|
||||
int opt_progress ;
|
||||
int output_fd ;
|
||||
int poll_time ;
|
||||
- int poll_num ;
|
||||
int poll_write ;
|
||||
int poll_read ;
|
||||
|
||||
@@ -861,7 +860,7 @@
|
||||
poll_time = display_time - get_time_ms();
|
||||
if ( poll_time < 0 ) poll_time = 0;
|
||||
}
|
||||
- poll_num = poll( poll_list, 2, poll_time );
|
||||
+ poll( poll_list, 2, poll_time );
|
||||
|
||||
//-----------------------
|
||||
// Check for poll events.
|
||||
Loading…
Add table
Add a link
Reference in a new issue