nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09-beta 23 lines 592 B view raw
1{ stdenv, fetchzip }: 2 3stdenv.mkDerivation rec { 4 name = "bats-${version}"; 5 version = "0.4.0"; 6 7 src = fetchzip { 8 url = "https://github.com/sstephenson/bats/archive/v${version}.tar.gz"; 9 sha256 = "05xpvfm0xky1532i3hd2l3wznxzh99bv2hxgykwdpxh18h6jr6jm"; 10 }; 11 12 patchPhase = "patchShebangs ./install.sh"; 13 14 installPhase = "./install.sh $out"; 15 16 meta = with stdenv.lib; { 17 homepage = https://github.com/sstephenson/bats; 18 description = "Bash Automated Testing System"; 19 maintainers = [ maintainers.lnl7 ]; 20 license = licenses.mit; 21 platforms = platforms.unix; 22 }; 23}