nixpkgs-suyu/pkgs/tools/networking/dibbler/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1,008 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2016-07-24 12:43:59 +02:00
stdenv.mkDerivation rec {
pname = "dibbler";
2016-07-24 12:43:59 +02:00
version = "1.0.1";
src = fetchurl {
url = "http://www.klub.com.pl/dhcpv6/dibbler/${pname}-${version}.tar.gz";
2016-07-24 12:43:59 +02:00
sha256 = "18bnwkvax02scjdg5z8gvrkvy1lhssfnlpsaqb5kkh30w1vri1i7";
};
configureFlags = [
"--enable-resolvconf"
];
# -fcommon: Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: ./Port-linux/libLowLevel.a(libLowLevel_a-interface.o):(.bss+0x4): multiple definition of `interface_auto_up';
# ./Port-linux/libLowLevel.a(libLowLevel_a-lowlevel-linux-link-state.o):(.bss+0x74): first defined here
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1" + " -fcommon";
2017-09-09 15:21:45 +02:00
meta = with lib; {
2016-07-24 12:43:59 +02:00
description = "Portable DHCPv6 implementation";
homepage = "https://klub.com.pl/dhcpv6/";
license = licenses.gpl2Only;
2016-07-24 12:43:59 +02:00
platforms = platforms.all;
maintainers = with maintainers; [ fpletz ];
};
}