Skip to content

Commit

Permalink
expat: fix build on aarch
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Aug 6, 2017
1 parent 67b6b7e commit 2bbfac7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/development/libraries/expat/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchpatch, fetchurl }:

stdenv.mkDerivation rec {
name = "expat-2.2.3";
Expand All @@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; # TODO: fix referrers
outputBin = "dev";

patches = [
(fetchpatch {
name = "fix-aarch-build.patch";
url = "https://github.com/libexpat/libexpat/commit/d98d4399174fd6f71d70e7bd89993a0e7346753d.patch";
sha256 = "0z89wb4mzyf7vvl6kbflk5w1z7yc39jwvs3mkznin5agj34x063w";
stripLen = 1;
excludes = [ "coverage.sh" ];
})
];

configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic";

outputMan = "dev"; # tiny page for a dev tool
Expand Down

0 comments on commit 2bbfac7

Please sign in to comment.