diff --git a/pkgs/development/tools/oq/default.nix b/pkgs/development/tools/oq/default.nix index ca9c648adfbd..04526eb70b6e 100644 --- a/pkgs/development/tools/oq/default.nix +++ b/pkgs/development/tools/oq/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper }: +{ lib, fetchFromGitHub, crystal, jq, libxml2, makeWrapper, fetchpatch }: crystal.buildCrystalPackage rec { pname = "oq"; @@ -11,6 +11,15 @@ crystal.buildCrystalPackage rec { 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 ]; buildInputs = [ jq libxml2 ]; @@ -32,6 +41,6 @@ crystal.buildCrystalPackage rec { homepage = "https://blacksmoke16.github.io/oq/"; license = licenses.mit; maintainers = with maintainers; [ filalex77 ]; - platforms = platforms.linux; + platforms = platforms.unix; }; }