summaryrefslogtreecommitdiff
path: root/pkgs/development/hare-third-party/hare-xml/default.nix
blob: 5078801f74d27a70087647f9bf90d3b9961ff4b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  fetchFromSourcehut,
  hareHook,
  lib,
  stdenv,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hare-xml";
  version = "0.25.2.0";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "hare-xml";
    tag = finalAttrs.version;
    hash = "sha256-YAXUt/gLtGgT/4XXwaVaFEkeWMTBxwjUeeHHm8o3QcA=";
  };

  nativeBuildInputs = [ hareHook ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  doCheck = true;

  meta = {
    homepage = "https://git.sr.ht/~sircmpwn/hare-xml/";
    description = "This package provides XML support for Hare";
    license = with lib.licenses; [ mpl20 ];
    maintainers = with lib.maintainers; [ sikmir ];
    inherit (hareHook.meta) platforms badPlatforms;
  };
})