about summary refs log tree commit diff
path: root/pkgs/development/hare-third-party/hare-compress/default.nix
blob: cc52e3e47eab7394d8ac4e5d3dd08cb4d83825ef (plain) (blame)
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
{ lib, stdenv, hare, harec, fetchFromSourcehut }:

stdenv.mkDerivation (finalAttrs: {
  pname = "hare-compress";
  version = "unstable-2023-11-01";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "hare-compress";
    rev = "562706946871d1c994f60361883269916cbaa08e";
    hash = "sha256-sz8xPBZaUFye3HH4lkRnH52ye451e6seZXN/qvg87jE=";
  };

  nativeBuildInputs = [ hare ];

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

  doCheck = true;

  meta = with lib; {
    homepage = "https://git.sr.ht/~sircmpwn/hare-compress/";
    description = "Compression algorithms for Hare";
    license = with licenses; [ mpl20 ];
    maintainers = with maintainers; [ starzation ];

    inherit (harec.meta) platforms badPlatforms;
  };
})