depot/third_party/nixpkgs/pkgs/development/hare-third-party/hare-toml/default.nix

44 lines
874 B
Nix
Raw Normal View History

{
fetchFromGitea,
hareHook,
lib,
nix-update-script,
scdoc,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hare-toml";
version = "0.1.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "lunacb";
repo = "hare-toml";
rev = "v${finalAttrs.version}";
hash = "sha256-r8T7Gy9c5polP+R12q0QRy4075nfGssDnNPQ8ARx/0M=";
};
nativeBuildInputs = [
scdoc
hareHook
];
makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ];
checkTarget = "check_local";
doCheck = true;
dontConfigure = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "TOML implementation for Hare";
homepage = "https://codeberg.org/lunacb/hare-toml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onemoresuza ];
inherit (hareHook.meta) platforms badPlatforms;
};
})