nixpkgs/pkgs/development/tools/oq/default.nix

38 lines
763 B
Nix
Raw Normal View History

2021-03-30 07:25:26 +00:00
{ lib
, fetchFromGitHub
, crystal
, jq
, libxml2
, makeWrapper
}:
2019-12-05 10:56:33 +00:00
crystal.buildCrystalPackage rec {
pname = "oq";
2021-12-25 13:20:50 +00:00
version = "1.3.1";
2019-12-05 10:56:33 +00:00
src = fetchFromGitHub {
owner = "Blacksmoke16";
repo = pname;
rev = "v${version}";
2021-12-25 13:20:50 +00:00
sha256 = "sha256-La2oi+r9sCmnacgjQe+LcTQ7EXKorSoTTD4LhNtQsYk=";
2019-12-05 10:56:33 +00:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jq libxml2 ];
2021-03-30 07:25:26 +00:00
format = "shards";
2020-05-10 14:54:34 +00:00
2019-12-05 10:56:33 +00:00
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;
2019-12-05 10:56:33 +00:00
};
}