insulator2: init at 2.12.2

address comments
This commit is contained in:
tc-kaluza 2023-09-25 08:07:38 +01:00
parent 23c7af2d23
commit 60fa50c058
No known key found for this signature in database
GPG Key ID: FC7236FBA0C3AA99
3 changed files with 5740 additions and 0 deletions

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

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