1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/maphosts/default.nix

27 lines
651 B
Nix
Raw Normal View History

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