a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
38 lines
790 B
Nix
38 lines
790 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, crystal
|
|
, jq
|
|
, libxml2
|
|
, makeWrapper
|
|
}:
|
|
|
|
crystal.buildCrystalPackage rec {
|
|
pname = "oq";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Blacksmoke16";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-W0iGE1yVOphooiab689AFT3rhGGdXqEFyYIhrx11RTE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ libxml2 ];
|
|
nativeCheckInputs = [ jq ];
|
|
|
|
format = "shards";
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/oq" \
|
|
--prefix PATH : "${lib.makeBinPath [ jq ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A performant, and portable jq wrapper";
|
|
homepage = "https://blacksmoke16.github.io/oq/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|