summaryrefslogtreecommitdiff
path: root/pkgs/development/hare-third-party/hare-ssh/default.nix
blob: fcdba0b2e5235be54d584d0a1b8d1a9b442516be (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
33
{
  fetchFromSourcehut,
  hareHook,
  lib,
  stdenv,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hare-ssh";
  version = "0.26.0";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "hare-ssh";
    tag = finalAttrs.version;
    hash = "sha256-msPY8m7/GDKsGDrhZ1IK65U+6fcI26FW9CONC4w87Pg=";
  };

  nativeBuildInputs = [ hareHook ];

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

  doCheck = true;

  meta = {
    homepage = "https://git.sr.ht/~sircmpwn/hare-ssh/";
    description = "SSH client & server protocol implementation for Hare";
    license = with lib.licenses; [ mpl20 ];
    maintainers = with lib.maintainers; [ patwid ];

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