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
15
pkgs/tools/cd-dvd/cdrdao/adjust-includes-for-glibc-212.patch
Normal file
15
pkgs/tools/cd-dvd/cdrdao/adjust-includes-for-glibc-212.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Adjust some headers for glibc 2.12 compatibility.
|
||||
Patch is a diff between the 1.2.3 release and CVS HEAD.
|
||||
|
||||
--- cdrdao-1.2.3/dao/ScsiIf-linux.cc 2009-09-28 05:42:03.000000000 -0430
|
||||
+++ /home/kkallio/q/src/r/cvs/cdrdao/cdrdao/dao/ScsiIf-linux.cc 2010-08-06 07:50:46.000000000 -0430
|
||||
@@ -19,6 +19,9 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
38
pkgs/tools/cd-dvd/cdrdao/default.nix
Normal file
38
pkgs/tools/cd-dvd/cdrdao/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{lib, stdenv, fetchurl, libvorbis, libmad, pkg-config, libao}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cdrdao";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/cdrdao/cdrdao-${version}.tar.bz2";
|
||||
sha256 = "0pmpgx91j984snrsxbq1dgf3ximks2dfh1sqqmic72lrls7wp4w1";
|
||||
};
|
||||
|
||||
makeFlags = [ "RM=rm" "LN=ln" "MV=mv" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libvorbis libmad libao ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
# Adjust some headers to match glibc 2.12 ... patch is a diff between
|
||||
# the cdrdao CVS head and the 1.2.3 release.
|
||||
patches = [ ./adjust-includes-for-glibc-212.patch ];
|
||||
|
||||
# we have glibc/include/linux as a symlink to the kernel headers,
|
||||
# and the magic '..' points to kernelheaders, and not back to the glibc/include
|
||||
postPatch = ''
|
||||
sed -i 's,linux/../,,g' dao/sg_err.h
|
||||
'';
|
||||
|
||||
# Needed on gcc >= 6.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
|
||||
homepage = "http://cdrdao.sourceforge.net/";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue