diff --git a/nixos/modules/services/networking/oidentd.nix b/nixos/modules/services/networking/oidentd.nix index 8cf34623ab5e..feb84806ba99 100644 --- a/nixos/modules/services/networking/oidentd.nix +++ b/nixos/modules/services/networking/oidentd.nix @@ -28,8 +28,7 @@ with lib; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig.Type = "forking"; - script = "${pkgs.oidentd}/sbin/oidentd -u oidentd -g nogroup" + - optionalString config.networking.enableIPv6 " -a ::"; + script = "${pkgs.oidentd}/sbin/oidentd -u oidentd -g nogroup"; }; users.users.oidentd = { diff --git a/pkgs/servers/identd/oidentd/default.nix b/pkgs/servers/identd/oidentd/default.nix index 1abe9512f589..80049cea7379 100644 --- a/pkgs/servers/identd/oidentd/default.nix +++ b/pkgs/servers/identd/oidentd/default.nix @@ -1,19 +1,19 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, bison, flex }: stdenv.mkDerivation rec { name = "oidentd-${version}"; - version = "2.2.2"; - - CFLAGS = [ "--std=gnu89" ]; + version = "2.3.1"; + nativeBuildInputs = [ bison flex ]; src = fetchurl { - url = "https://ftp.janikrabe.com/pub/oidentd/releases/${version}/${name}.tar.gz"; - sha256 = "1svj7ymljp4s17d7jlx6602n9081714qsj5yymmv1s9wagzjqyn9"; + url = "https://files.janikrabe.com/pub/oidentd/releases/${version}/${name}.tar.gz"; + sha256 = "1sljid4jyz9gjyx8wy3xd6bq4624dxs422nqd3mcxnsvgxr6d6zd"; }; - meta = { - homepage = http://ojnk.sourceforge.net/; - description = "An implementation of the IDENT protocol"; - platforms = stdenv.lib.platforms.linux; + meta = with stdenv.lib; { + description = "Configurable Ident protocol server"; + homepage = https://oidentd.janikrabe.com/; + license = licenses.gpl2; + platforms = platforms.linux; }; }