oq: fix build

This commit is contained in:
Stig Palmquist 2020-05-10 16:54:34 +02:00
parent a6ac6d00f9
commit 6dbe177f29
No known key found for this signature in database
GPG Key ID: 10C838A306094775

View File

@ -14,8 +14,14 @@ crystal.buildCrystalPackage rec {
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 ]}"