diff options
Diffstat (limited to 'pkgs/development/tools/misc/travis/default.nix')
-rw-r--r-- | pkgs/development/tools/misc/travis/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/travis/default.nix b/pkgs/development/tools/misc/travis/default.nix new file mode 100644 index 0000000000000..adc63ce7c43f8 --- /dev/null +++ b/pkgs/development/tools/misc/travis/default.nix @@ -0,0 +1,29 @@ +{ 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; + }; +} |