Merge pull request #112309 from spacefrogg/sharness
sharness: Init at 1.1.0-dev
This commit is contained in:
commit
3ed5570514
2 changed files with 53 additions and 0 deletions
51
pkgs/development/libraries/sharness/default.nix
Normal file
51
pkgs/development/libraries/sharness/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, perl
|
||||
, perlPackages
|
||||
, sharnessExtensions ? {} }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sharness";
|
||||
version = "1.1.0-dev";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chriscool";
|
||||
repo = pname;
|
||||
rev = "3f238a740156dd2082f4bd60ced205e05894d367"; # 2020-12-09
|
||||
sha256 = "FCYskpIqkrpNaWCi2LkhEkiow4/rXLe+lfEWNUthLUg=";
|
||||
};
|
||||
|
||||
# Used for testing
|
||||
nativeBuildInputs = [ perl perlPackages.IOTty ];
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
|
||||
extensions = lib.mapAttrsToList (k: v: "${k}.sh ${v}") sharnessExtensions;
|
||||
|
||||
postInstall = lib.optionalString (sharnessExtensions != {}) ''
|
||||
extDir=$out/share/sharness/sharness.d
|
||||
mkdir -p "$extDir"
|
||||
linkExtensions() {
|
||||
set -- $extensions
|
||||
while [ $# -ge 2 ]; do
|
||||
ln -s "$2" "$extDir/$1"
|
||||
shift 2
|
||||
done
|
||||
}
|
||||
linkExtensions
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Portable shell library to write, run and analyze automated tests adhering to Test Anything Protocol (TAP)";
|
||||
homepage = "https://github.com/chriscool/sharness";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.spacefrogg ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -16618,6 +16618,8 @@ in
|
|||
|
||||
shapelib = callPackage ../development/libraries/shapelib { };
|
||||
|
||||
sharness = callPackage ../development/libraries/sharness { };
|
||||
|
||||
shibboleth-sp = callPackage ../development/libraries/shibboleth-sp { };
|
||||
|
||||
skaffold = callPackage ../development/tools/skaffold { };
|
||||
|
|
Loading…
Reference in a new issue