oq: init at 1.0.2
This commit is contained in:
parent
b6284fd70f
commit
c28f6fce99
2 changed files with 33 additions and 0 deletions
31
pkgs/development/tools/oq/default.nix
Normal file
31
pkgs/development/tools/oq/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper }:
|
||||||
|
|
||||||
|
crystal.buildCrystalPackage rec {
|
||||||
|
pname = "oq";
|
||||||
|
version = "1.0.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Blacksmoke16";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0sf6rb5b6g7gzyq11l5868p3a1s5z8432swlpv457bfbbnbg6j6q";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildInputs = [ jq libxml2 ];
|
||||||
|
|
||||||
|
crystalBinaries.oq.src = "src/oq_cli.cr";
|
||||||
|
|
||||||
|
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; [ filalex77 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5420,6 +5420,8 @@ in
|
||||||
stdenv = clangStdenv;
|
stdenv = clangStdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
oq = callPackage ../development/tools/oq { };
|
||||||
|
|
||||||
out-of-tree = callPackage ../development/tools/out-of-tree { };
|
out-of-tree = callPackage ../development/tools/out-of-tree { };
|
||||||
|
|
||||||
oppai-ng = callPackage ../tools/misc/oppai-ng { };
|
oppai-ng = callPackage ../tools/misc/oppai-ng { };
|
||||||
|
|
Loading…
Reference in a new issue