Merge pull request #99040 from risicle/ris-oq-fix

oq: fix build
This commit is contained in:
markuskowa 2020-10-10 22:31:56 +02:00 committed by GitHub
commit ae5eda2c1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}