nixpkgs/pkgs/development/tools/continuous-integration/cide/default.nix
2016-02-28 12:49:20 +00:00

33 lines
767 B
Nix

{ stdenv, lib, bundlerEnv, makeWrapper, docker, git, gnutar, gzip }:
stdenv.mkDerivation rec {
name = "cide-${version}";
version = "0.9.0";
env = bundlerEnv {
name = "${name}-gems";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
phases = ["installPhase"];
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/cide $out/bin/cide \
--set PATH ${docker}/bin:${git}/bin:${gnutar}/bin:${gzip}/bin
'';
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;
};
}