mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #16676 from mpscholten/maphosts2
maphosts: Don't provide bundler anymore
This commit is contained in:
commit
17d6abb771
1 changed files with 16 additions and 6 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue