Loading pkgs/tools/misc/tremor-rs/default.nix +39 −24 Original line number Diff line number Diff line { lib , rustPlatform , pkg-config , cmake , openssl , fetchFromGitHub , installShellFiles , stdenv , Security , libiconv , protobuf { lib, rustPlatform, pkg-config, cmake, openssl, fetchFromGitHub, installShellFiles, stdenv, Security, libiconv, protobuf, }: rustPlatform.buildRustPackage rec { Loading @@ -32,10 +33,19 @@ rustPlatform.buildRustPackage rec { }; }; nativeBuildInputs = [ cmake pkg-config installShellFiles rustPlatform.bindgenHook ]; nativeBuildInputs = [ cmake pkg-config installShellFiles rustPlatform.bindgenHook ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ]; # relax lints to fix an error caused by invalid macro_export # error: `log_error` isn't a valid `#[macro_export]` argument Loading @@ -46,11 +56,13 @@ rustPlatform.buildRustPackage rec { ''; # TODO export TREMOR_PATH($out/lib) variable postInstall = '' postInstall = '' # Copy the standard library to $out/lib cp -r ${src}/tremor-script/lib/ $out '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd tremor \ --bash <($out/bin/tremor completions bash) \ --fish <($out/bin/tremor completions fish) \ Loading Loading @@ -91,6 +103,9 @@ rustPlatform.buildRustPackage rec { ''; homepage = "https://www.tremor.rs/"; license = licenses.asl20; maintainers = with maintainers; [ humancalico happysalada ]; maintainers = with maintainers; [ humancalico happysalada ]; }; } Loading
pkgs/tools/misc/tremor-rs/default.nix +39 −24 Original line number Diff line number Diff line { lib , rustPlatform , pkg-config , cmake , openssl , fetchFromGitHub , installShellFiles , stdenv , Security , libiconv , protobuf { lib, rustPlatform, pkg-config, cmake, openssl, fetchFromGitHub, installShellFiles, stdenv, Security, libiconv, protobuf, }: rustPlatform.buildRustPackage rec { Loading @@ -32,10 +33,19 @@ rustPlatform.buildRustPackage rec { }; }; nativeBuildInputs = [ cmake pkg-config installShellFiles rustPlatform.bindgenHook ]; nativeBuildInputs = [ cmake pkg-config installShellFiles rustPlatform.bindgenHook ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ]; # relax lints to fix an error caused by invalid macro_export # error: `log_error` isn't a valid `#[macro_export]` argument Loading @@ -46,11 +56,13 @@ rustPlatform.buildRustPackage rec { ''; # TODO export TREMOR_PATH($out/lib) variable postInstall = '' postInstall = '' # Copy the standard library to $out/lib cp -r ${src}/tremor-script/lib/ $out '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd tremor \ --bash <($out/bin/tremor completions bash) \ --fish <($out/bin/tremor completions fish) \ Loading Loading @@ -91,6 +103,9 @@ rustPlatform.buildRustPackage rec { ''; homepage = "https://www.tremor.rs/"; license = licenses.asl20; maintainers = with maintainers; [ humancalico happysalada ]; maintainers = with maintainers; [ humancalico happysalada ]; }; }