nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 fetchFromCodeberg, 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 = fetchFromCodeberg { 15 owner = "lunacb"; 16 repo = "hare-toml"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-MfflJElDMu15UBuewssqhCEsNtzmN/H421H4HV+JCWc="; 19 }; 20 21 patches = [ 22 # Update strconv module functions for 0.24.2 23 (fetchpatch { 24 url = "https://codeberg.org/lunacb/hare-toml/commit/9849908ba1fd3457abd6c708272ecb896954d2bc.patch"; 25 hash = "sha256-herJZXJ8uusTO2b7Ddby2chIvDRuAPDFOPEt+wotTA0="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ 30 scdoc 31 hareHook 32 ]; 33 34 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 35 36 checkTarget = "check_local"; 37 38 doCheck = true; 39 40 dontConfigure = true; 41 42 passthru.updateScript = nix-update-script { }; 43 44 meta = { 45 description = "TOML implementation for Hare"; 46 homepage = "https://codeberg.org/lunacb/hare-toml"; 47 license = lib.licenses.mit; 48 maintainers = with lib.maintainers; [ onemoresuza ]; 49 inherit (hareHook.meta) platforms badPlatforms; 50 }; 51})