2019-07-22 12:02:47 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
|
2016-06-29 11:31:54 +00:00
|
|
|
|
2016-07-03 13:53:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "maphosts-${env.gems.maphosts.version}";
|
2016-06-29 11:31:54 +00:00
|
|
|
|
2016-07-03 13:53:53 +00:00
|
|
|
env = bundlerEnv {
|
|
|
|
name = "maphosts-gems";
|
|
|
|
inherit ruby;
|
2017-01-17 23:17:50 +00:00
|
|
|
gemdir = ./.;
|
2016-07-03 13:53:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["installPhase"];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
|
|
|
|
'';
|
2016-06-29 11:31:54 +00:00
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "maphosts";
|
|
|
|
|
2016-06-29 11:31:54 +00:00
|
|
|
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;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ mpscholten nicknovitski ];
|
2016-06-29 11:31:54 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|