1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 }:
bundlerEnv {
name = "maphosts-1.1.1";
stdenv.mkDerivation rec {
name = "maphosts-${env.gems.maphosts.version}";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
env = bundlerEnv {
name = "maphosts-gems";
inherit ruby;
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; {
description = "Small command line application for keeping your project hostnames in sync with /etc/hosts";