diff options
Diffstat (limited to 'pkgs/tools/networking/maphosts/default.nix')
-rw-r--r-- | pkgs/tools/networking/maphosts/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/networking/maphosts/default.nix b/pkgs/tools/networking/maphosts/default.nix index e54a2b21d9fd9..6b5fded40dd9d 100644 --- a/pkgs/tools/networking/maphosts/default.nix +++ b/pkgs/tools/networking/maphosts/default.nix @@ -1,17 +1,17 @@ { stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }: -stdenv.mkDerivation rec { +stdenv.mkDerivation { name = "maphosts-${env.gems.maphosts.version}"; - env = bundlerEnv { - name = "maphosts-gems"; - inherit ruby; - gemdir = ./.; - }; - phases = ["installPhase"]; - installPhase = '' + installPhase = let + env = bundlerEnv { + name = "maphosts-gems"; + inherit ruby; + gemdir = ./.; + }; + in '' mkdir -p "$out/bin" ln -s "${env}/bin/maphosts" "$out/bin/maphosts" ''; |