Merge pull request #268982 from starzation/hare-packages

hareThirdParty.hare-json: init at unstable-2023-09-21
This commit is contained in:
Peder Bergebakken Sundt
2023-12-03 18:52:41 +01:00
committed by GitHub
3 changed files with 48 additions and 1 deletions
+6
View File
@@ -17284,6 +17284,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";
@@ -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;
};
})
+3 -1
View File
@@ -4,4 +4,6 @@ lib.makeScope newScope (self:
let
inherit (self) callPackage;
in
{ })
{
hare-json = callPackage ../development/hare-packages/hare-json { };
})