Unverified Commit ec3b79f6 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #317046 from GeoffreyFrogeye/massdns

parents 272d7433 9fbb1ba0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -7419,6 +7419,16 @@
      fingerprint = "386E D1BF 848A BB4A 6B4A  3C45 FC83 907C 125B C2BC";
    }];
  };
  geoffreyfrogeye = {
    name = "Geoffrey Frogeye";
    email = "geoffrey@frogeye.fr";
    matrix = "@geoffrey:frogeye.fr";
    github = "GeoffreyFrogeye";
    githubId = 1685403;
    keys = [{
      fingerprint = "4FBA 930D 314A 0321 5E2C  DB0A 8312 C8CA C1BA C289";
    }];
  };
  georgesalkhouri = {
    name = "Georges Alkhouri";
    email = "incense.stitch_0w@icloud.com";
+36 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, nix-update-script
}:
stdenv.mkDerivation rec {
  pname = "massdns";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "blechschmidt";
    repo = "massdns";
    rev = "v${version}";
    hash = "sha256-hrnAg5ErPt93RV4zobRGVtcKt4aM2tC52r08T7+vRGc=";
  };

  makeFlags = [
    "PREFIX=$(out)"
    "PROJECT_FLAGS=-DMASSDNS_REVISION='\"v${version}\"'"
  ];
  buildFlags = if stdenv.isLinux then "all" else "nolinux";

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Resolve large amounts of domain names";
    homepage = "https://github.com/blechschmidt/massdns";
    changelog = "https://github.com/blechschmidt/massdns/releases/tag/v${version}";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ geoffreyfrogeye ];
    mainProgram = "massdns";
    platforms = platforms.all;
    # error: use of undeclared identifier 'MSG_NOSIGNAL'
    badPlatforms = platforms.darwin;
  };
}