nixpkgs/pkgs/development/tools/continuous-integration/cide/default.nix

31 lines
704 B
Nix
Raw Normal View History

2016-02-26 14:34:19 +00:00
{ stdenv, lib, bundlerEnv, makeWrapper, docker, git, gnutar, gzip }:
2015-08-02 00:11:17 +00:00
stdenv.mkDerivation rec {
name = "cide-${version}";
2016-02-26 14:34:19 +00:00
version = "0.9.0";
2015-08-02 00:11:17 +00:00
env = bundlerEnv {
name = "${name}-gems";
2017-01-17 23:35:15 +00:00
gemdir = ./.;
2015-08-02 00:11:17 +00:00
};
phases = ["installPhase"];
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/cide $out/bin/cide \
2016-08-22 22:06:51 +00:00
--set PATH ${stdenv.lib.makeBinPath [ docker git gnutar gzip ]}
2015-08-02 00:11:17 +00:00
'';
meta = with lib; {
description = "Isolated test runner with Docker";
homepage = http://zimbatm.github.io/cide/;
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
platforms = docker.meta.platforms;
};
}