summary refs log tree commit diff
path: root/pkgs/development/libraries/expat/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-03-05 00:01:54 +0000
committerGitHub <noreply@github.com>2022-03-05 00:01:54 +0000
commitd4bfb57f40e853c1d19823841b056094b2586ded (patch)
tree5fa0ae4ff363bec92757fb6441bd87cedd34ab49 /pkgs/development/libraries/expat/default.nix
parent437813752bf01781552b44b4d907986b1032874d (diff)
parent041689514562b87c6a0941b896fba76ded30a0bf (diff)
downloadnixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar.gz
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar.bz2
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar.lz
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar.xz
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.tar.zst
nixpkgs-d4bfb57f40e853c1d19823841b056094b2586ded.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/development/libraries/expat/default.nix')
-rw-r--r--pkgs/development/libraries/expat/default.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix
index a6f1bbd25e0..ac54ced75b1 100644
--- a/pkgs/development/libraries/expat/default.nix
+++ b/pkgs/development/libraries/expat/default.nix
@@ -1,4 +1,13 @@
-{ stdenv, fetchurl, lib }:
+{ lib
+, stdenv
+, fetchurl
+# for passthru.tests
+, python3
+, perlPackages
+, haskellPackages
+, luaPackages
+, ocamlPackages
+}:
 
 # Note: this package is used for bootstrapping fetchurl, and thus
 # cannot use fetchpatch! All mutable patches (generated by GitHub or
@@ -34,6 +43,14 @@ stdenv.mkDerivation rec {
       --replace "$"'{_IMPORT_PREFIX}' $out
   '';
 
+  passthru.tests = {
+    inherit python3;
+    inherit (haskellPackages) hexpat;
+    inherit (perlPackages) XMLSAXExpat XMLParser;
+    inherit (luaPackages) luaexpat;
+    inherit (ocamlPackages) ocaml_expat;
+  };
+
   meta = with lib; {
     homepage = "https://libexpat.github.io/";
     description = "A stream-oriented XML parser library written in C";