Skip to content

Commit

Permalink
hareThirdParty.hare-toml: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onemoresuza committed Dec 16, 2023
1 parent 8a20549 commit 6b1d88d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
55 changes: 55 additions & 0 deletions pkgs/development/hare-third-party/hare-toml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ stdenv
, hare
, scdoc
, lib
, fetchFromGitea
, fetchpatch
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hare-toml";
version = "0.1.0";

src = fetchFromGitea {
domain = "codeberg.org";
owner = "lunacb";
repo = "hare-toml";
rev = "v${finalAttrs.version}";
hash = "sha256-JKK5CcDmAW7FH7AzFwgsr9i13eRSXDUokWfZix7f4yY=";
};

patches = [
# Remove `abort()` calls from never returning expressions.
(fetchpatch {
name = "remove-abort-from-never-returning-expressions.patch";
url = "https://codeberg.org/lunacb/hare-toml/commit/f26e7cdfdccd2e82c9fce7e9fca8644b825b40f1.patch";
hash = "sha256-DFbrxiaV4lQlFmMzo5GbMubIQ4hU3lXgsJqoyeFWf2g=";
})
];

nativeBuildInputs = [
scdoc
hare
];

makeFlags = [
"HARECACHE=.harecache"
"PREFIX=${builtins.placeholder "out"}"
];

checkTarget = "check_local";

doCheck = true;

dontConfigure = true;

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

meta = {
description = "A TOML implementation for Hare";
homepage = "https://codeberg.org/lunacb/hare-toml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onemoresuza ];
inherit (hare.meta) platforms badPlatforms;
};
})
3 changes: 2 additions & 1 deletion pkgs/top-level/hare-third-party.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ let
inherit (self) callPackage;
in
{

### H ###
hare-compress = callPackage ../development/hare-third-party/hare-compress { };
hare-json = callPackage ../development/hare-third-party/hare-json { };
hare-toml = callPackage ../development/hare-third-party/hare-toml { };
})

0 comments on commit 6b1d88d

Please sign in to comment.