depot/third_party/nixpkgs/pkgs/tools/networking/maphosts/default.nix
Default email 5b567aa208 Project import generated by Copybara.
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
2021-07-21 09:28:18 +02:00

29 lines
751 B
Nix

{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
let
env = bundlerEnv {
name = "maphosts-gems";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
pname = "maphosts";
version = env.gems.maphosts.version;
dontUnpack = true;
installPhase = ''
mkdir -p "$out/bin"
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
'';
passthru.updateScript = bundlerUpdateScript "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 nicknovitski ];
platforms = platforms.all;
};
}