nixpkgs/pkgs/by-name/ba/bats/libraries.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

110 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; [ brokenpip3 ];
};
});
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; [ brokenpip3 ];
};
});
bats-detik = stdenv.mkDerivation (finalAttrs: {
pname = "bats-detik";
version = "1.3.2";
src = fetchFromGitHub {
owner = "bats-core";
repo = "bats-detik";
rev = "v${finalAttrs.version}";
hash = "sha256-f8PN+VsUdUXrR9JiQgVuYDy2QgOtaxE8tkkxOUF0uC4=";
};
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; [ brokenpip3 ];
};
});
}