504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
104 lines
3.2 KiB
Nix
104 lines
3.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub }: {
|
|
bats-assert = stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bats-assert";
|
|
version = "2.1.0";
|
|
src = fetchFromGitHub {
|
|
owner = "bats-core";
|
|
repo = "bats-assert";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-opgyrkqTwtnn/lUjMebbLfS/3sbI2axSusWd5i/5wm4=";
|
|
};
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/share/bats/bats-assert"
|
|
cp load.bash "$out/share/bats/bats-assert"
|
|
cp -r src "$out/share/bats/bats-assert"
|
|
runHook postInstall
|
|
'';
|
|
meta = {
|
|
description = "Common assertions for Bats";
|
|
platforms = lib.platforms.all;
|
|
homepage = "https://github.com/bats-core/bats-assert";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ infinisil ];
|
|
};
|
|
});
|
|
|
|
bats-file = stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bats-file";
|
|
version = "0.4.0";
|
|
src = fetchFromGitHub {
|
|
owner = "bats-core";
|
|
repo = "bats-file";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-NJzpu1fGAw8zxRKFU2awiFM2Z3Va5WONAD2Nusgrf4o=";
|
|
};
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/share/bats/bats-file"
|
|
cp load.bash "$out/share/bats/bats-file"
|
|
cp -r src "$out/share/bats/bats-file"
|
|
runHook postInstall
|
|
'';
|
|
meta = {
|
|
description = "Common filesystem assertions for Bats";
|
|
platforms = lib.platforms.all;
|
|
homepage = "https://github.com/bats-core/bats-file";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ infinisil ];
|
|
};
|
|
});
|
|
|
|
bats-detik = stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bats-detik";
|
|
version = "1.2.1";
|
|
src = fetchFromGitHub {
|
|
owner = "bats-core";
|
|
repo = "bats-detik";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-2BEIqRSc21oPjd9BgTLg5mGyAdNJYA2b7gZe7Nj2dks=";
|
|
};
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/share/bats/bats-detik"
|
|
cp -r lib/* "$out/share/bats/bats-detik"
|
|
runHook postInstall
|
|
'';
|
|
meta = {
|
|
description = "Library to ease e2e tests of applications in K8s environments";
|
|
platforms = lib.platforms.all;
|
|
homepage = "https://github.com/bats-core/bats-detik";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ brokenpip3 ];
|
|
};
|
|
});
|
|
|
|
bats-support = stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bats-support";
|
|
version = "0.3.0";
|
|
src = fetchFromGitHub {
|
|
owner = "bats-core";
|
|
repo = "bats-support";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-4N7XJS5XOKxMCXNC7ef9halhRpg79kUqDuRnKcrxoeo=";
|
|
};
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/share/bats/bats-support"
|
|
cp load.bash "$out/share/bats/bats-support"
|
|
cp -r src "$out/share/bats/bats-support"
|
|
runHook postInstall
|
|
'';
|
|
meta = {
|
|
description = "Supporting library for Bats test helpers";
|
|
platforms = lib.platforms.all;
|
|
homepage = "https://github.com/bats-core/bats-support";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ infinisil ];
|
|
};
|
|
});
|
|
}
|