diff --git a/pkgs/development/hare-third-party/hare-http/default.nix b/pkgs/development/hare-third-party/hare-http/default.nix new file mode 100644 index 000000000000..de07152d248d --- /dev/null +++ b/pkgs/development/hare-third-party/hare-http/default.nix @@ -0,0 +1,34 @@ +{ + fetchFromSourcehut, + hareHook, + hareThirdParty, + lib, + stdenv, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "hare-http"; + version = "0.26.0.0"; + + src = fetchFromSourcehut { + owner = "~sircmpwn"; + repo = "hare-http"; + tag = finalAttrs.version; + hash = "sha256-0NPLYuoAVvIiDH7d0KtJnmKX/C1ShdBZIo9w3EPsmkA="; + }; + + nativeBuildInputs = [ hareHook ]; + propagatedBuildInputs = [ hareThirdParty.hare-ev ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + doCheck = true; + + meta = { + homepage = "https://git.sr.ht/~sircmpwn/hare-http/"; + description = "HTTP(s) support for Hare"; + license = with lib.licenses; [ mpl20 ]; + maintainers = with lib.maintainers; [ sikmir ]; + inherit (hareHook.meta) platforms badPlatforms; + }; +}) diff --git a/pkgs/top-level/hare-third-party.nix b/pkgs/top-level/hare-third-party.nix index b509ffb6ed36..f7bf47d58b01 100644 --- a/pkgs/top-level/hare-third-party.nix +++ b/pkgs/top-level/hare-third-party.nix @@ -8,6 +8,7 @@ lib.makeScope newScope ( { hare-compress = callPackage ../development/hare-third-party/hare-compress { }; hare-ev = callPackage ../development/hare-third-party/hare-ev { }; + hare-http = callPackage ../development/hare-third-party/hare-http { }; hare-json = callPackage ../development/hare-third-party/hare-json { }; hare-ssh = callPackage ../development/hare-third-party/hare-ssh { }; hare-toml = callPackage ../development/hare-third-party/hare-toml { };