oq: fix build
this patch is actually included in the already-released oq 1.1.2, but we can't upgrade to that because it requires crystal 0.35, which we don't seem to have yet enable for darwin
This commit is contained in:
parent
55dc3b76f0
commit
892712e260
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper }:
|
{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper, fetchpatch }:
|
||||||
|
|
||||||
crystal.buildCrystalPackage rec {
|
crystal.buildCrystalPackage rec {
|
||||||
pname = "oq";
|
pname = "oq";
|
||||||
@ -11,6 +11,15 @@ crystal.buildCrystalPackage rec {
|
|||||||
sha256 = "1zg4kxpfi3sap4cwp42zg46j5dv0nf926qdqm7k22ncm6jdrgpgw";
|
sha256 = "1zg4kxpfi3sap4cwp42zg46j5dv0nf926qdqm7k22ncm6jdrgpgw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# remove once we have upgraded to oq 1.1.2+
|
||||||
|
name = "yaml-test-leniency.patch";
|
||||||
|
url = "https://github.com/Blacksmoke16/oq/commit/93ed2fe50c9ce3fd8d35427e007790ddaaafce60.patch";
|
||||||
|
sha256 = "1iyz0c0w0ykz268bkrlqwvh1jnnrja0mqip6y89sbpa14lp0l37n";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ jq libxml2 ];
|
buildInputs = [ jq libxml2 ];
|
||||||
|
|
||||||
@ -32,6 +41,6 @@ crystal.buildCrystalPackage rec {
|
|||||||
homepage = "https://blacksmoke16.github.io/oq/";
|
homepage = "https://blacksmoke16.github.io/oq/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ filalex77 ];
|
maintainers = with maintainers; [ filalex77 ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user