···1-{ stdenv, fetchurl, lib }:
00000000023# Note: this package is used for bootstrapping fetchurl, and thus
4# cannot use fetchpatch! All mutable patches (generated by GitHub or
···33 substituteInPlace $dev/lib/cmake/expat-${version}/expat-noconfig.cmake \
34 --replace "$"'{_IMPORT_PREFIX}' $out
35 '';
000000003637 meta = with lib; {
38 homepage = "https://libexpat.github.io/";
···1+{ lib
2+, stdenv
3+, fetchurl
4+# for passthru.tests
5+, python3
6+, perlPackages
7+, haskellPackages
8+, luaPackages
9+, ocamlPackages
10+}:
1112# Note: this package is used for bootstrapping fetchurl, and thus
13# cannot use fetchpatch! All mutable patches (generated by GitHub or
···42 substituteInPlace $dev/lib/cmake/expat-${version}/expat-noconfig.cmake \
43 --replace "$"'{_IMPORT_PREFIX}' $out
44 '';
45+46+ passthru.tests = {
47+ inherit python3;
48+ inherit (haskellPackages) hexpat;
49+ inherit (perlPackages) XMLSAXExpat XMLParser;
50+ inherit (luaPackages) luaexpat;
51+ inherit (ocamlPackages) ocaml_expat;
52+ };
5354 meta = with lib; {
55 homepage = "https://libexpat.github.io/";