mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
wrappedRuby: add test for binaryWrapper
This commit is contained in:
parent
e377a4d312
commit
a734cbbd5d
@ -118,9 +118,12 @@ let
|
|||||||
|
|
||||||
wrappedRuby = stdenv.mkDerivation {
|
wrappedRuby = stdenv.mkDerivation {
|
||||||
name = "wrapped-ruby-${pname'}";
|
name = "wrapped-ruby-${pname'}";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
inherit (ruby) gemPath meta;
|
|
||||||
buildCommand = ''
|
dontUnpack = true;
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for i in ${ruby}/bin/*; do
|
for i in ${ruby}/bin/*; do
|
||||||
makeWrapper "$i" $out/bin/$(basename "$i") \
|
makeWrapper "$i" $out/bin/$(basename "$i") \
|
||||||
@ -131,6 +134,15 @@ let
|
|||||||
--set GEM_PATH ${basicEnv}/${ruby.gemPath}
|
--set GEM_PATH ${basicEnv}/${ruby.gemPath}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontInstall = true;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkPhase = ''
|
||||||
|
$out/bin/ruby --help > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
inherit (ruby) meta;
|
||||||
};
|
};
|
||||||
|
|
||||||
env = let
|
env = let
|
||||||
|
Loading…
Reference in New Issue
Block a user