summary refs log blame commit diff
path: root/pkgs/tools/networking/maphosts/default.nix
blob: 08c56574dcf7a1ccf658b4738eb95cfaeb62cb78 (plain) (tree)
1
2
3
4
5

                                  

                                                 
 













                                                   








                                                                                                              
{ stdenv, lib, bundlerEnv, ruby }:

stdenv.mkDerivation rec {
  name = "maphosts-${env.gems.maphosts.version}";

  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";
    homepage    = https://github.com/mpscholten/maphosts;
    license     = licenses.mit;
    maintainers = with maintainers; [ mpscholten ];
    platforms   = platforms.all;
  };
}