8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
15 rev = "d9ee530cd709168882059776c482fc37f46cb743";
16 sha256 = "1jkidw6aqr0zfqwmcvlpi9qa140z2pxcfsd43xm5ikx6jcwjdrzl";
19 nativeBuildInputs = [ makeWrapper ];
21 # The default build phase (`make`) runs the test code. It's difficult to do
22 # the test in the build environment because it depends on the system package
23 # managers (apt/yum/pacman). We simply skip this phase since RoleSpec is
27 # Wrap the program because `ROLESPEC_LIB` defaults to
28 # `/usr/local/lib/rolespec`.
30 make install PREFIX=$out
31 wrapProgram $out/bin/rolespec --set ROLESPEC_LIB $out/lib/rolespec
34 # Since RoleSpec installs the shell script files in `lib` directory, the
35 # fixup phase shows some warnings. Disable these actions.
40 homepage = "https://github.com/nickjj/rolespec";
41 description = "Test library for testing Ansible roles";
42 mainProgram = "rolespec";
44 A shell based test library for Ansible that works both locally and over
47 downloadPage = "https://github.com/nickjj/rolespec";
48 license = licenses.gpl3;
49 maintainers = [ maintainers.dochang ];
50 platforms = platforms.unix;