```git-check-assertions run test/mechanicaldiff.bats assert_success git checkout HEAD~ bin run test/mechanicaldiff.bats assert_failure assert_output --partial "not ok 9 keeps matching change with an extra removed line" assert_output --partial "not ok 10 keeps matching change with an extra added line" ```
34 lines
744 B
Nix
34 lines
744 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
packages.default = pkgs.callPackage ./default.nix { };
|
|
devShells.default = pkgs.mkShell {
|
|
packages = [
|
|
(pkgs.bats.withLibraries (p: [
|
|
p.bats-assert
|
|
p.bats-support
|
|
]))
|
|
pkgs.gitMinimal
|
|
pkgs.python3
|
|
pkgs.python3Packages.flake8
|
|
pkgs.shellcheck
|
|
pkgs.shfmt
|
|
pkgs.patchutils_0_4_2
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|