Merge pull request #256675 from tc-kaluza/feat/init-insulator2

insulator2: init at 2.12.2
This commit is contained in:
Emily Trau 2023-12-01 21:55:20 +11:00 committed by GitHub
commit f1750de0bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5745 additions and 0 deletions

View File

@ -17773,6 +17773,11 @@
githubId = 7914437;
name = "Thomas Cheronneau";
};
tc-kaluza = {
github = "tc-kaluza";
githubId = 101565936;
name = "Tautvydas Cerniauskas";
};
tckmn = {
email = "andy@tck.mn";
github = "tckmn";

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,99 @@
{ lib
, cmake
, dbus
, fetchFromGitHub
, fetchYarnDeps
, openssl
, pkg-config
, freetype
, libsoup
, gtk3
, webkitgtk
, perl
, cyrus_sasl
, stdenv
, fixup_yarn_lock
, yarn
, nodejs-slim
, cargo-tauri
, cargo
, rustPlatform
, rustc
}:
stdenv.mkDerivation rec {
pname = "insulator2";
version = "2.12.2";
src = fetchFromGitHub {
owner = "andrewinci";
repo = pname;
rev = "v${version}";
hash = "sha256-Bi9GCQr7yox5Plc7o0svRKYi1XoK/HDGj1VbW1z4jac=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-ih5NSOvYje981SkVfPHm/u2sS1B36kgxpfe9LmQaxdo=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"apache-avro-0.15.0" = "sha256-bjA/x/IDzAYugsc1vn9fBVKaCiLOJYdA1Q9H2pffBh0=";
"openssl-src-111.25.0+1.1.1t" = "sha256-1BEtb38ilJJAw35KW+NOIe1rhxxOPsnz0gA2zJnof8c=";
"rdkafka-0.29.0" = "sha256-a739Fc+qjmIrK754GT22Gb/Ftd82lLSUzv53Ej7Khu4=";
"rust-keystore-0.1.1" = "sha256-Cj64uJFZNxnrplhRuqf9/HK/RAaawzfYHo/J9snZ+TU=";
};
};
configurePhase = ''
export HOME=$(mktemp -d)
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
fixup_yarn_lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
yarn run postinstall --offline
'';
preBuild = ''
yarn tauri build -b deb
'';
cargoRoot = "backend/";
preInstall = ''
mv backend/target/release/bundle/deb/*/data/usr/ "$out"
'';
nativeBuildInputs = [
cmake
pkg-config
perl
rustPlatform.cargoSetupHook
cargo
rustc
cargo-tauri
fixup_yarn_lock
yarn
nodejs-slim
cyrus_sasl
];
buildInputs = [
dbus
openssl.out
freetype
libsoup
gtk3
webkitgtk
];
meta = with lib; {
description = "A client UI to inspect Kafka topics, consume, produce and much more";
homepage = "https://github.com/andrewinci/insulator2";
license = licenses.gpl3Only;
maintainers = with maintainers; [ tc-kaluza ];
};
}

View File

@ -42138,4 +42138,6 @@ with pkgs;
code-maat = callPackage ../development/tools/code-maat {};
mdhtml = callPackage ../tools/text/mdhtml { };
insulator2 = callPackage ../applications/misc/insulator2 {};
}