2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-06 13:03:34 +00:00
nixpkgs/pkgs/development/tools/continuous-integration/cide/default.nix

33 lines
727 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, makeWrapper, docker, git }:
2015-08-02 00:11:17 +00:00
stdenv.mkDerivation rec {
name = "cide-${version}";
version = "0.8.1";
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
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;
};
}