at 18.09-beta 38 lines 988 B view raw
1{ stdenv, fetchFromGitHub, ronn, shocco }: 2 3stdenv.mkDerivation rec { 4 name = "roundup-${version}"; 5 version = "0.0.6"; 6 7 src = fetchFromGitHub { 8 owner = "bmizerany"; 9 repo = "roundup"; 10 rev = "v${version}"; 11 sha256 = "0nxaqmbv8mdvq9wcaqxk6k5mr31i68jzxf1wxa6pp7xp4prwdc9z"; 12 }; 13 14 prePatch = '' 15 # Don't change $PATH 16 substituteInPlace configure --replace PATH= NIRVANA= 17 # There are only man pages in sections 1 and 5 \ 18 substituteInPlace Makefile --replace "{1..9}" "1 5" 19 ''; 20 21 nativeBuildInputs = [ ronn shocco ]; 22 23 installTargets = [ "install" "install-man" ]; 24 25 preInstall = '' 26 for i in 1 5; do 27 mkdir -p $out/share/man/man$i 28 done 29 ''; 30 31 meta = with stdenv.lib; { 32 description = "A unit testing tool for running test plans which are written in any POSIX shell"; 33 homepage = http://bmizerany.github.io/roundup/; 34 license = licenses.mit; 35 maintainers = with maintainers; [ dotlambda ]; 36 platforms = platforms.all; 37 }; 38}