travis: simplify
This commit is contained in:
parent
830c75b5e7
commit
80d4117a8c
@ -1,29 +1,14 @@
|
|||||||
{ stdenv, lib, bundlerEnv, ruby }:
|
{ lib, bundlerEnv, ruby }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
bundlerEnv {
|
||||||
name = "travis-${version}";
|
inherit ruby;
|
||||||
version = env.gems.travis.version;
|
pName = "travis";
|
||||||
|
gemdir = ./.;
|
||||||
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; {
|
meta = with lib; {
|
||||||
description = "CLI and Ruby client library for Travis CI";
|
description = "CLI and Ruby client library for Travis CI";
|
||||||
homepage = https://github.com/travis-ci/travis.rb;
|
homepage = https://github.com/travis-ci/travis.rb;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ zimbatm ];
|
maintainers = with maintainers; [ zimbatm ];
|
||||||
platforms = ruby.meta.platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user