2019-07-22 14:02:47 +02:00
|
|
|
{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
|
2016-06-29 13:31:54 +02:00
|
|
|
|
2019-12-31 02:37:24 +01:00
|
|
|
let
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "maphosts-gems";
|
|
|
|
inherit ruby;
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
2021-07-20 12:53:50 +02:00
|
|
|
pname = "maphosts";
|
|
|
|
version = env.gems.maphosts.version;
|
2016-06-29 13:31:54 +02:00
|
|
|
|
2021-07-20 12:05:31 +02:00
|
|
|
dontUnpack = true;
|
2016-07-03 15:53:53 +02:00
|
|
|
|
2019-12-31 02:37:24 +01:00
|
|
|
installPhase = ''
|
2016-07-03 15:53:53 +02:00
|
|
|
mkdir -p "$out/bin"
|
|
|
|
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
|
|
|
|
'';
|
2016-06-29 13:31:54 +02:00
|
|
|
|
2019-07-22 14:02:47 +02:00
|
|
|
passthru.updateScript = bundlerUpdateScript "maphosts";
|
|
|
|
|
2016-06-29 13:31:54 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Small command line application for keeping your project hostnames in sync with /etc/hosts";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mpscholten/maphosts";
|
2016-06-29 13:31:54 +02:00
|
|
|
license = licenses.mit;
|
2019-07-22 14:02:47 +02:00
|
|
|
maintainers = with maintainers; [ mpscholten nicknovitski ];
|
2016-06-29 13:31:54 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|