mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
c609c50a78
buildCrystalPackage now has strictDeps enabled kakoune-cr: add bash to buildInputs for patchShebangs scry: add bash to buildInputs for patchShebang
39 lines
784 B
Nix
39 lines
784 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, crystal
|
|
, jq
|
|
, libxml2
|
|
, makeWrapper
|
|
}:
|
|
|
|
crystal.buildCrystalPackage rec {
|
|
pname = "oq";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Blacksmoke16";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iGKyP3NrAnR3ISOBq+YR/vwarlnIY4u4ZwdqSBnBC7U=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ libxml2 ];
|
|
checkInputs = [ 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;
|
|
};
|
|
}
|