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
35
pkgs/os-specific/linux/libaio/default.nix
Normal file
35
pkgs/os-specific/linux/libaio/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.3.112";
|
||||
pname = "libaio";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
|
||||
sha256 = "0wi2myh191sja13qj3claxhpfkngvy10x30f78hm9cxzkfr97kxp";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs harness
|
||||
|
||||
# Makefile is too optimistic, gcc is too smart
|
||||
substituteInPlace harness/Makefile \
|
||||
--replace "-Werror" ""
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"prefix=${placeholder "out"}"
|
||||
] ++ lib.optional stdenv.hostPlatform.isStatic "ENABLE_SHARED=0";
|
||||
|
||||
hardeningDisable = lib.optional (stdenv.isi686) "stackprotector";
|
||||
|
||||
checkTarget = "partcheck"; # "check" needs root
|
||||
|
||||
meta = {
|
||||
description = "Library for asynchronous I/O in Linux";
|
||||
homepage = "http://lse.sourceforge.net/io/aio.html";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.lgpl21;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue