7 sharnessExtensions ? { },
10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-C0HVWgTm9iXDSFyXcUVRfT0ip31YGaaZ6ZvxggK/x7o=";
32 makeFlags = [ "prefix=$(out)" ];
34 extensions = lib.mapAttrsToList (k: v: "${k}.sh ${v}") sharnessExtensions;
36 postInstall = lib.optionalString (sharnessExtensions != { }) ''
37 extDir=$out/share/sharness/sharness.d
41 while [ $# -ge 2 ]; do
42 ln -s "$2" "$extDir/$1"
51 passthru.SHARNESS_TEST_SRCDIR = finalAttrs.finalPackage + "/share/sharness";
54 description = "Portable shell library to write, run and analyze automated tests adhering to Test Anything Protocol (TAP)";
55 homepage = "https://github.com/chriscool/sharness";
56 license = licenses.gpl2Only;
57 maintainers = [ maintainers.spacefrogg ];
58 platforms = platforms.unix;