nixpkgs/pkgs/tools/misc/shellspec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
951 B
Nix
Raw Normal View History

2022-05-06 18:39:28 +00:00
{ lib, stdenv, fetchFromGitHub, bash }:
2022-03-01 23:09:44 +00:00
stdenv.mkDerivation rec {
pname = "shellspec";
version = "0.28.1";
src = fetchFromGitHub {
owner = "shellspec";
repo = pname;
rev = version;
sha256 = "1ib5qp29f2fmivwnv6hq35qhvdxz42xgjlkvy0i3qn758riyqf46";
};
2022-05-06 18:39:28 +00:00
strictDeps = true;
buildInputs = [ bash ];
2022-03-01 23:09:44 +00:00
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;
};
}