nixpkgs/pkgs/tools/networking/maphosts/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
751 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
2016-06-29 11:31:54 +00:00
2019-12-31 01:37:24 +00:00
let
env = bundlerEnv {
name = "maphosts-gems";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
2021-07-20 10:53:50 +00:00
pname = "maphosts";
version = env.gems.maphosts.version;
2016-06-29 11:31:54 +00:00
2021-07-20 10:05:31 +00:00
dontUnpack = true;
2019-12-31 01:37:24 +00:00
installPhase = ''
mkdir -p "$out/bin"
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
'';
2016-06-29 11:31:54 +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";
2016-06-29 11:31:54 +00:00
license = licenses.mit;
maintainers = with maintainers; [ mpscholten nicknovitski ];
2016-06-29 11:31:54 +00:00
platforms = platforms.all;
};
}