Merge pull request #16676 from mpscholten/maphosts2

maphosts: Don't provide bundler anymore
This commit is contained in:
zimbatm 2016-07-03 18:10:33 +01:00 committed by GitHub
commit 17d6abb771

View File

@ -1,12 +1,22 @@
{ stdenv, lib, bundlerEnv, ruby }: { stdenv, lib, bundlerEnv, ruby }:
bundlerEnv { stdenv.mkDerivation rec {
name = "maphosts-1.1.1"; name = "maphosts-${env.gems.maphosts.version}";
inherit ruby; env = bundlerEnv {
gemfile = ./Gemfile; name = "maphosts-gems";
lockfile = ./Gemfile.lock; inherit ruby;
gemset = ./gemset.nix; gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
phases = ["installPhase"];
installPhase = ''
mkdir -p "$out/bin"
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
'';
meta = with lib; { meta = with lib; {
description = "Small command line application for keeping your project hostnames in sync with /etc/hosts"; description = "Small command line application for keeping your project hostnames in sync with /etc/hosts";