Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
985 B
Nix
41 lines
985 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
bash,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "shellspec";
|
|
version = "0.28.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shellspec";
|
|
repo = "shellspec";
|
|
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 = {
|
|
description = "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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ j0hax ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "shellspec";
|
|
};
|
|
}
|