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
43
pkgs/tools/networking/keepalived/default.nix
Normal file
43
pkgs/tools/networking/keepalived/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitHub, nixosTests
|
||||
, file, libmnl, libnftnl, libnl
|
||||
, net-snmp, openssl, pkg-config
|
||||
, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "keepalived";
|
||||
version = "2.2.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "acassen";
|
||||
repo = "keepalived";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-erpYC4klkgvZ9D+4qM/qIHajsyOGKRbX7lhs6lfWFTQ=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
file
|
||||
libmnl
|
||||
libnftnl
|
||||
libnl
|
||||
net-snmp
|
||||
openssl
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests.keepalived = nixosTests.keepalived;
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-sha1"
|
||||
"--enable-snmp"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://keepalived.org";
|
||||
description = "Routing software written in C";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue