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/tools/networking/xnbd/default.nix
Normal file
34
pkgs/tools/networking/xnbd/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, glib, jansson }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xnbd";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/hirofuchi/xnbd/downloads/xnbd-${version}.tgz";
|
||||
sha256 = "00wkvsa0yaq4mabczcbfpj6rjvp02yahw8vdrq8hgb3wpm80x913";
|
||||
};
|
||||
|
||||
sourceRoot = "xnbd-${version}/trunk";
|
||||
|
||||
patches = [ ./0001-Fix-build-for-glibc-2.28.patch ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
|
||||
buildInputs = [ glib jansson ];
|
||||
|
||||
# do not build docs, it is slow and it fails on Hydra
|
||||
prePatch = ''
|
||||
rm -rf doc
|
||||
substituteInPlace configure.ac --replace "doc/Makefile" ""
|
||||
substituteInPlace Makefile.am --replace "lib doc ." "lib ."
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://bitbucket.org/hirofuchi/xnbd";
|
||||
description = "Yet another NBD (Network Block Device) server program";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ lib.maintainers.volth ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue