elasticsearch: remove top-level with lib;

This commit is contained in:
TomaSajt 2024-05-13 22:00:11 +02:00
parent afb6c6e279
commit 500405f89c
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -11,11 +11,10 @@
, zlib
}:
with lib;
let
info = splitString "-" stdenv.hostPlatform.system;
arch = elemAt info 0;
plat = elemAt info 1;
info = lib.splitString "-" stdenv.hostPlatform.system;
arch = lib.elemAt info 0;
plat = lib.elemAt info 1;
hashes =
{
x86_64-linux = "sha512-OiWGRxaCdRxXuxE/W04v87ytzOeUEcHRjF5nyRkdqSbZSnLXUyKOYQ4fKmk4til0VBOaKZYId20XyPiu/XTXNw==";
@ -62,7 +61,7 @@ stdenv.mkDerivation rec {
--replace 'bin/elasticsearch-keystore' "$out/bin/elasticsearch-keystore"
wrapProgram $out/bin/elasticsearch \
--prefix PATH : "${makeBinPath [ util-linux coreutils gnugrep ]}" \
--prefix PATH : "${lib.makeBinPath [ util-linux coreutils gnugrep ]}" \
--set JAVA_HOME "${jre_headless}"
wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}"
@ -70,9 +69,9 @@ stdenv.mkDerivation rec {
passthru = { enableUnfree = true; };
meta = {
meta = with lib; {
description = "Open Source, Distributed, RESTful Search Engine";
sourceProvenance = with lib.sourceTypes; [
sourceProvenance = with sourceTypes; [
binaryBytecode
binaryNativeCode
];