mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
27 lines
651 B
Nix
27 lines
651 B
Nix
{ stdenv, lib, bundlerEnv, ruby }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "maphosts-${env.gems.maphosts.version}";
|
|
|
|
env = bundlerEnv {
|
|
name = "maphosts-gems";
|
|
inherit ruby;
|
|
gemdir = ./.;
|
|
};
|
|
|
|
phases = ["installPhase"];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/bin"
|
|
ln -s "${env}/bin/maphosts" "$out/bin/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 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|