1 { lib, stdenv, fetchFromGitHub }: {
2 bats-assert = stdenv.mkDerivation rec {
5 src = fetchFromGitHub {
9 sha256 = "sha256-opgyrkqTwtnn/lUjMebbLfS/3sbI2axSusWd5i/5wm4=";
13 mkdir -p "$out/share/bats/bats-assert"
14 cp load.bash "$out/share/bats/bats-assert"
15 cp -r src "$out/share/bats/bats-assert"
18 description = "Common assertions for Bats";
19 platforms = lib.platforms.all;
20 homepage = "https://github.com/bats-core/bats-assert";
21 license = lib.licenses.cc0;
22 maintainers = with lib.maintainers; [ infinisil ];
26 bats-file = stdenv.mkDerivation rec {
29 src = fetchFromGitHub {
33 sha256 = "sha256-3xevy0QpwNZrEe+2IJq58tKyxQzYx8cz6dD2nz7fYUM=";
37 mkdir -p "$out/share/bats/bats-file"
38 cp load.bash "$out/share/bats/bats-file"
39 cp -r src "$out/share/bats/bats-file"
42 description = "Common filesystem assertions for Bats";
43 platforms = lib.platforms.all;
44 homepage = "https://github.com/bats-core/bats-file";
45 license = lib.licenses.cc0;
46 maintainers = with lib.maintainers; [ infinisil ];
50 bats-support = stdenv.mkDerivation rec {
51 pname = "bats-support";
53 src = fetchFromGitHub {
55 repo = "bats-support";
57 sha256 = "sha256-4N7XJS5XOKxMCXNC7ef9halhRpg79kUqDuRnKcrxoeo=";
61 mkdir -p "$out/share/bats/bats-support"
62 cp load.bash "$out/share/bats/bats-support"
63 cp -r src "$out/share/bats/bats-support"
66 description = "Supporting library for Bats test helpers";
67 platforms = lib.platforms.all;
68 homepage = "https://github.com/bats-core/bats-support";
69 license = lib.licenses.cc0;
70 maintainers = with lib.maintainers; [ infinisil ];