@@ -1,4 +1,4 @@
1−{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper }:
1+{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper, fetchpatch }:
22
33crystal.buildCrystalPackage rec {
44 pname = "oq";
@@ -11,6 +11,15 @@ crystal.buildCrystalPackage rec {
1111 sha256 = "1zg4kxpfi3sap4cwp42zg46j5dv0nf926qdqm7k22ncm6jdrgpgw";
1212 };
1313
14+ patches = [
15+ (fetchpatch {
16+ # remove once we have upgraded to oq 1.1.2+
17+ name = "yaml-test-leniency.patch";
18+ url = "https://github.com/Blacksmoke16/oq/commit/93ed2fe50c9ce3fd8d35427e007790ddaaafce60.patch";
19+ sha256 = "1iyz0c0w0ykz268bkrlqwvh1jnnrja0mqip6y89sbpa14lp0l37n";
20+ })
21+ ];
22+
1423 nativeBuildInputs = [ makeWrapper ];
1524 buildInputs = [ jq libxml2 ];
1625
@@ -32,6 +41,6 @@ crystal.buildCrystalPackage rec {
3241 homepage = "https://blacksmoke16.github.io/oq/";
3342 license = licenses.mit;
3443 maintainers = with maintainers; [ filalex77 ];
35− platforms = platforms.linux;
44+ platforms = platforms.unix;
3645 };
3746}