nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7stdenv.mkDerivation rec {
8 pname = "massdns";
9 version = "1.1.0";
10
11 src = fetchFromGitHub {
12 owner = "blechschmidt";
13 repo = "massdns";
14 rev = "v${version}";
15 hash = "sha256-hrnAg5ErPt93RV4zobRGVtcKt4aM2tC52r08T7+vRGc=";
16 };
17
18 makeFlags = [
19 "PREFIX=$(out)"
20 "PROJECT_FLAGS=-DMASSDNS_REVISION='\"v${version}\"'"
21 ];
22 buildFlags = if stdenv.hostPlatform.isLinux then "all" else "nolinux";
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = {
27 description = "Resolve large amounts of domain names";
28 homepage = "https://github.com/blechschmidt/massdns";
29 changelog = "https://github.com/blechschmidt/massdns/releases/tag/v${version}";
30 license = lib.licenses.gpl3Only;
31 maintainers = with lib.maintainers; [ geoffreyfrogeye ];
32 mainProgram = "massdns";
33 platforms = lib.platforms.all;
34 # error: use of undeclared identifier 'MSG_NOSIGNAL'
35 badPlatforms = lib.platforms.darwin;
36 };
37}