mawk: add test version

This commit is contained in:
Anderson Torres 2024-08-24 10:44:26 -03:00
parent 2251566513
commit c012e3eb24

View File

@ -3,6 +3,7 @@
buildPackages,
fetchurl,
stdenv,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
@ -19,6 +20,13 @@ stdenv.mkDerivation (finalAttrs: {
depsBuildBuild = [ buildPackages.stdenv.cc ];
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "mawk -W version";
};
};
meta = {
homepage = "https://invisible-island.net/mawk/mawk.html";
changelog = "https://invisible-island.net/mawk/CHANGES";