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
38
pkgs/servers/uhub/default.nix
Normal file
38
pkgs/servers/uhub/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchpatch, fetchFromGitHub, cmake, openssl, sqlite, pkg-config
|
||||
, systemd, tlsSupport ? false }:
|
||||
|
||||
assert tlsSupport -> openssl != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "uhub";
|
||||
version = "unstable-2019-12-13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "janvidar";
|
||||
repo = "uhub";
|
||||
rev = "35d8088b447527f56609b85b444bd0b10cd67b5c";
|
||||
hash = "sha256-CdTTf82opnpjd7I9TTY+JDEZSfdGFPE0bq/xsafwm/w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ sqlite systemd ] ++ lib.optional tlsSupport openssl;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "/usr/lib/uhub/" "$out/plugins" \
|
||||
--replace "/etc/uhub" "$TMPDIR"
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSYSTEMD_SUPPORT=ON"
|
||||
"-DSSL_SUPPORT=${if tlsSupport then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "High performance peer-to-peer hub for the ADC network";
|
||||
homepage = "https://www.uhub.org/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.ehmry ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue