From 66e1473eaf3e463297cf1144bdfe5614305cdec4 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 26 Mar 2024 13:21:15 +0100 Subject: [PATCH] npth: add musl regression test Would have caught the issue fixed by 180b5c1c8c1a ("pkgsMusl.npth: backport patch to fix build"). I used pkgsCross instead of pkgsMusl so it does something useful on non-Linux. --- pkgs/development/libraries/npth/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/npth/default.nix b/pkgs/development/libraries/npth/default.nix index f7a31ad8086fd5..1ca747048e3323 100644 --- a/pkgs/development/libraries/npth/default.nix +++ b/pkgs/development/libraries/npth/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook }: +{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, pkgsCross }: stdenv.mkDerivation rec { pname = "npth"; @@ -21,6 +21,10 @@ stdenv.mkDerivation rec { doCheck = true; + passthru.tests = { + musl = pkgsCross.musl64.npth; + }; + meta = with lib; { description = "The New GNU Portable Threads Library"; mainProgram = "npth-config";