git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit892712e26052114ec46b786ce69f405d44d20ce2 authorRobert Scott <code@humanleg.org.uk> dateMon 28 Sep 2020, 22:50 (6 years ago) parent55dc3b7
1 file changed+11−2
pkgs/development/tools/oq/default.nix+11−2
pkgs/development/tools/oq/default.nix+11−2
@@ -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}