nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 alcotest,
6}:
7
8buildDunePackage (finalAttrs: {
9 pname = "domain-name";
10 version = "0.5.0";
11
12 src = fetchurl {
13 url = "https://github.com/hannesm/domain-name/releases/download/v${finalAttrs.version}/domain-name-${finalAttrs.version}.tbz";
14 hash = "sha256-nseuLCJ3LBULhM+j8h2b8l+uFKeW8x4g31LYb0ZJnYk=";
15 };
16
17 doCheck = true;
18 checkInputs = [ alcotest ];
19
20 meta = {
21 homepage = "https://github.com/hannesm/domain-name";
22 changelog = "https://github.com/hannesm/domain-name/blob/v${finalAttrs.version}/CHANGES.md";
23 description = "RFC 1035 Internet domain names";
24 license = lib.licenses.isc;
25 maintainers = [ lib.maintainers.vbgl ];
26 };
27})