Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitea, 3 fetchpatch, 4 hareHook, 5 lib, 6 nix-update-script, 7 scdoc, 8 stdenv, 9}: 10stdenv.mkDerivation (finalAttrs: { 11 pname = "hare-toml"; 12 version = "0.1.2"; 13 14 src = fetchFromGitea { 15 domain = "codeberg.org"; 16 owner = "lunacb"; 17 repo = "hare-toml"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-MfflJElDMu15UBuewssqhCEsNtzmN/H421H4HV+JCWc="; 20 }; 21 22 patches = [ 23 # Update strconv module functions for 0.24.2 24 (fetchpatch { 25 url = "https://codeberg.org/lunacb/hare-toml/commit/9849908ba1fd3457abd6c708272ecb896954d2bc.patch"; 26 hash = "sha256-herJZXJ8uusTO2b7Ddby2chIvDRuAPDFOPEt+wotTA0="; 27 }) 28 ]; 29 30 nativeBuildInputs = [ 31 scdoc 32 hareHook 33 ]; 34 35 makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ]; 36 37 checkTarget = "check_local"; 38 39 doCheck = true; 40 41 dontConfigure = true; 42 43 passthru.updateScript = nix-update-script { }; 44 45 meta = { 46 description = "TOML implementation for Hare"; 47 homepage = "https://codeberg.org/lunacb/hare-toml"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ onemoresuza ]; 50 inherit (hareHook.meta) platforms badPlatforms; 51 }; 52})