Merge pull request #16676 from mpscholten/maphosts2
maphosts: Don't provide bundler anymore
This commit is contained in:
commit
17d6abb771
@ -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}";
|
||||||
|
|
||||||
|
env = bundlerEnv {
|
||||||
|
name = "maphosts-gems";
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
gemfile = ./Gemfile;
|
gemfile = ./Gemfile;
|
||||||
lockfile = ./Gemfile.lock;
|
lockfile = ./Gemfile.lock;
|
||||||
gemset = ./gemset.nix;
|
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user