nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ronn,
6 shocco,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "roundup";
11 version = "0.0.6";
12
13 src = fetchFromGitHub {
14 owner = "bmizerany";
15 repo = "roundup";
16 rev = "v${finalAttrs.version}";
17 sha256 = "0nxaqmbv8mdvq9wcaqxk6k5mr31i68jzxf1wxa6pp7xp4prwdc9z";
18 };
19
20 prePatch = ''
21 # Don't change $PATH
22 substituteInPlace configure --replace PATH= NIRVANA=
23 # There are only man pages in sections 1 and 5 \
24 substituteInPlace Makefile --replace "{1..9}" "1 5"
25 '';
26
27 nativeBuildInputs = [
28 ronn
29 shocco
30 ];
31
32 installTargets = [
33 "install"
34 "install-man"
35 ];
36
37 preInstall = ''
38 for i in 1 5; do
39 mkdir -p $out/share/man/man$i
40 done
41 '';
42
43 meta = {
44 description = "Unit testing tool for running test plans which are written in any POSIX shell";
45 homepage = "http://bmizerany.github.io/roundup/";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ dotlambda ];
48 platforms = lib.platforms.all;
49 mainProgram = "roundup";
50 };
51})