nixpkgs/pkgs/development/tools/misc/travis/default.nix

30 lines
677 B
Nix
Raw Normal View History

2016-04-04 12:55:48 +02:00
{ stdenv, lib, bundlerEnv, ruby }:
stdenv.mkDerivation rec {
name = "travis-${version}";
version = env.gems.travis.version;
env = bundlerEnv {
inherit ruby;
name = "${name}-gems";
gemset = ./gemset.nix;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
};
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
ln -s ${env}/bin/travis $out/bin/travis
'';
meta = with lib; {
description = "CLI and Ruby client library for Travis CI";
homepage = https://github.com/travis-ci/travis.rb;
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
platforms = ruby.meta.platforms;
};
}