Skip to content

Commit

Permalink
hareThirdParty.hare-toml: make use of buildHarePackage
Browse files Browse the repository at this point in the history
  • Loading branch information
onemoresuza committed Mar 11, 2024
1 parent d3014c6 commit bc00000
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions pkgs/development/hare-third-party/hare-toml/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{ stdenv
, hare
{ buildHarePackage
, scdoc
, lib
, fetchFromGitea
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
buildHarePackage (finalAttrs: {
pname = "hare-toml";
version = "0.1.1";

Expand All @@ -19,12 +18,6 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [
scdoc
hare
];

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

checkTarget = "check_local";
Expand All @@ -33,13 +26,17 @@ stdenv.mkDerivation (finalAttrs: {

dontConfigure = true;

postPatch = ''
substituteInPlace ./Makefile \
--replace-fail '$(HARE) test' '$(HARE) test $(HAREFLAGS)'
'';

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;
};
})

0 comments on commit bc00000

Please sign in to comment.