mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
133b4658df
In anticipation of what I outline in #33599, I only simplify exactly those `doCheck`s which are equal to `hostPlatform != buildPlatform`. I also stick a comment next to them so I can grep for them later.
32 lines
776 B
Nix
32 lines
776 B
Nix
{ stdenv, fetchpatch, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "expat-2.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/expat/${name}.tar.bz2";
|
|
sha256 = "1xpd78sp7m34jqrw5x13bz7kgz0n6aj15wn4zj4gfx3ypbpk5p6r";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ]; # TODO: fix referrers
|
|
outputBin = "dev";
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
|
|
|
|
outputMan = "dev"; # tiny page for a dev tool
|
|
|
|
doCheck = true; # not cross;
|
|
|
|
preCheck = ''
|
|
patchShebangs ./run.sh
|
|
patchShebangs ./test-driver-wrapper.sh
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.libexpat.org/;
|
|
description = "A stream-oriented XML parser library written in C";
|
|
platforms = platforms.all;
|
|
license = licenses.mit; # expat version
|
|
};
|
|
}
|