From 0530fcc0b137fe7e38a58a95b83703777ecac935 Mon Sep 17 00:00:00 2001 From: starzation <145975416+starzation@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:20:19 +0700 Subject: [PATCH] hareThirdParty.hare-compress: init at unstable-2023-11-01 --- .../hare-compress/default.nix | 31 +++++++++++++++++++ pkgs/top-level/hare-third-party.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/hare-third-party/hare-compress/default.nix diff --git a/pkgs/development/hare-third-party/hare-compress/default.nix b/pkgs/development/hare-third-party/hare-compress/default.nix new file mode 100644 index 000000000000..cc52e3e47eab --- /dev/null +++ b/pkgs/development/hare-third-party/hare-compress/default.nix @@ -0,0 +1,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; + }; +}) diff --git a/pkgs/top-level/hare-third-party.nix b/pkgs/top-level/hare-third-party.nix index 084e749c676c..73ffbc0ea790 100644 --- a/pkgs/top-level/hare-third-party.nix +++ b/pkgs/top-level/hare-third-party.nix @@ -6,4 +6,6 @@ let in { hare-json = callPackage ../development/hare-packages/hare-json { }; + + hare-compress = callPackage ../development/hare-third-party/hare-compress {}; })