Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oq: 1.0.2 -> 1.1.0, fix build #87504

Merged
merged 2 commits into from May 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions pkgs/development/tools/oq/default.nix
Expand Up @@ -2,20 +2,26 @@

crystal.buildCrystalPackage rec {
pname = "oq";
version = "1.0.2";
version = "1.1.0";

src = fetchFromGitHub {
owner = "Blacksmoke16";
repo = pname;
rev = "v${version}";
sha256 = "0sf6rb5b6g7gzyq11l5868p3a1s5z8432swlpv457bfbbnbg6j6q";
sha256 = "1zg4kxpfi3sap4cwp42zg46j5dv0nf926qdqm7k22ncm6jdrgpgw";
};

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jq libxml2 ];

format = "crystal";
crystalBinaries.oq.src = "src/oq_cli.cr";

preCheck = ''
mkdir bin
cp oq bin/oq
'';

postInstall = ''
wrapProgram "$out/bin/oq" \
--prefix PATH : "${lib.makeBinPath [ jq ]}"
Expand Down