summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkuskowa <markus.kowalewski@gmail.com>2020-10-10 22:31:56 +0200
committerGitHub <noreply@github.com>2020-10-10 22:31:56 +0200
commitae5eda2c1b12c9bd2a31f1906a1bdf9979439dd4 (patch)
treea735908b749dafcb1cfd036361d62ab4746dd25c
parent2dfadf168f4cdc8d54b9c6f2373e2106b1504123 (diff)
parent892712e26052114ec46b786ce69f405d44d20ce2 (diff)
Merge pull request #99040 from risicle/ris-oq-fix
oq: fix build
-rw-r--r--pkgs/development/tools/oq/default.nix13
1 files changed, 11 insertions, 2 deletions
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;
};
}