From 50543cf1211752b9ab1c598e80a4a23d0ee54097 Mon Sep 17 00:00:00 2001 From: starzation Date: Sat, 25 Nov 2023 05:11:37 +0700 Subject: [PATCH 1/2] maintainers: add starzation --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4678aeb8811a..32586d999bd6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17260,6 +17260,12 @@ githubId = 327943; name = "Scott Zhu Reeves"; }; + starzation = { + email = "nixpkgs@starzation.net"; + github = "starzation"; + githubId = 145975416; + name = "Starzation"; + }; stasjok = { name = "Stanislav Asunkin"; email = "nixpkgs@stasjok.ru"; From f03629728793cce0025338357105a65e3d9b3bbf Mon Sep 17 00:00:00 2001 From: starzation Date: Sun, 3 Dec 2023 23:14:38 +0700 Subject: [PATCH 2/2] hareThirdParty.hare-json: init at unstable-2023-09-21 --- .../hare-packages/hare-json/default.nix | 39 +++++++++++++++++++ pkgs/top-level/hare-third-party.nix | 4 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/hare-packages/hare-json/default.nix diff --git a/pkgs/development/hare-packages/hare-json/default.nix b/pkgs/development/hare-packages/hare-json/default.nix new file mode 100644 index 000000000000..d9afdeadf7f0 --- /dev/null +++ b/pkgs/development/hare-packages/hare-json/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, hare, harec, fetchFromSourcehut }: + +stdenv.mkDerivation (finalAttrs: { + pname = "hare-json"; + version = "unstable-2023-09-21"; + + src = fetchFromSourcehut { + owner = "~sircmpwn"; + repo = "hare-json"; + rev = "e24e5dceb8628ff569338e6c4fdba35a5017c5e2"; + hash = "sha256-7QRieokqXarKwLfZynS8Rum9JV9hcxod00BWAUwwliM="; + }; + + nativeBuildInputs = [ hare ]; + + configurePhase = '' + runHook preConfigure + + export HARECACHE="$NIX_BUILD_TOP/.harecache" + export BINOUT="$NIX_BUILD_TOP/.bin" + + makeFlagsArray+=( + PREFIX="${builtins.placeholder "out"}" + ) + + runHook postConfigure + ''; + + doCheck = true; + + meta = with lib; { + homepage = "https://git.sr.ht/~sircmpwn/hare-json/"; + description = "This package provides JSON support 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 524df05659f4..084e749c676c 100644 --- a/pkgs/top-level/hare-third-party.nix +++ b/pkgs/top-level/hare-third-party.nix @@ -4,4 +4,6 @@ lib.makeScope newScope (self: let inherit (self) callPackage; in -{ }) +{ + hare-json = callPackage ../development/hare-packages/hare-json { }; +})