Merge pull request #54262 from smaximov/fix-rbnacl-6.0.0
gem-config: support rbnacl v6.0.0
This commit is contained in:
commit
08ee0d9d08
@ -297,12 +297,15 @@ in
|
|||||||
buildInputs = [ rainbow_rake ];
|
buildInputs = [ rainbow_rake ];
|
||||||
};
|
};
|
||||||
|
|
||||||
rbnacl = spec: {
|
rbnacl = spec:
|
||||||
|
if lib.versionOlder spec.version "6.0.0" then {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i $(cat $out/nix-support/gem-meta/install-path)/lib/rbnacl.rb -e "2a \
|
sed -i $(cat $out/nix-support/gem-meta/install-path)/lib/rbnacl.rb -e "2a \
|
||||||
RBNACL_LIBSODIUM_GEM_LIB_PATH = '${libsodium.out}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}'
|
RBNACL_LIBSODIUM_GEM_LIB_PATH = '${libsodium.out}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}'
|
||||||
"
|
"
|
||||||
'';
|
'';
|
||||||
|
} else {
|
||||||
|
buildInputs = [ libsodium ];
|
||||||
};
|
};
|
||||||
|
|
||||||
re2 = attrs: {
|
re2 = attrs: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user