3
0
Fork 0
forked from mirrors/nixpkgs

maphosts: fix build

This commit is contained in:
Jan Tojnar 2019-12-31 02:37:24 +01:00
parent 49e4859256
commit 9a8441c170
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,17 +1,17 @@
{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
stdenv.mkDerivation {
let
env = bundlerEnv {
name = "maphosts-gems";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
name = "maphosts-${env.gems.maphosts.version}";
phases = ["installPhase"];
installPhase = let
env = bundlerEnv {
name = "maphosts-gems";
inherit ruby;
gemdir = ./.;
};
in ''
installPhase = ''
mkdir -p "$out/bin"
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
'';