504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
982 B
Nix
37 lines
982 B
Nix
{ lib, stdenv, fetchFromGitHub, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "shellspec";
|
|
version = "0.28.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shellspec";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1ib5qp29f2fmivwnv6hq35qhvdxz42xgjlkvy0i3qn758riyqf46";
|
|
};
|
|
|
|
strictDeps = true;
|
|
buildInputs = [ bash ];
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
checkPhase = ''
|
|
./shellspec --no-banner --task fixture:stat:prepare
|
|
./shellspec --no-banner spec --jobs "$(nproc)"
|
|
'';
|
|
|
|
# "Building" the script happens in Docker
|
|
dontBuild = true;
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells";
|
|
homepage = "https://shellspec.info/";
|
|
changelog =
|
|
"https://github.com/shellspec/shellspec/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ j0hax ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "shellspec";
|
|
};
|
|
}
|