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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
763 B
Nix
Raw Normal View History

2021-03-30 09:25:26 +02:00
{ lib
, fetchFromGitHub
, crystal
, jq
, libxml2
, makeWrapper
}:
2019-12-05 11:56:33 +01:00
crystal.buildCrystalPackage rec {
pname = "oq";
2022-02-12 22:22:42 +01:00
version = "1.3.2";
2019-12-05 11:56:33 +01:00
src = fetchFromGitHub {
owner = "Blacksmoke16";
repo = pname;
rev = "v${version}";
2022-02-12 22:22:42 +01:00
sha256 = "sha256-iGKyP3NrAnR3ISOBq+YR/vwarlnIY4u4ZwdqSBnBC7U=";
2019-12-05 11:56:33 +01:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jq libxml2 ];
2021-03-30 09:25:26 +02:00
format = "shards";
2020-05-10 16:54:34 +02:00
2019-12-05 11:56:33 +01: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 11:56:33 +01:00
};
}