My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/networking/maphosts/default.nix

29 lines
751 B

{ 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;
};
}