mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
84a4d9e0e1
`git` is being used during `cide package`
33 lines
727 B
Nix
33 lines
727 B
Nix
{ stdenv, lib, bundlerEnv, makeWrapper, docker, git }:
|
|
|
|
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
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|