11 stdenv.mkDerivation (finalAttrs: {
12 pname = "confluent-platform";
16 url = "https://packages.confluent.io/archive/${lib.versions.majorMinor finalAttrs.version}/confluent-${finalAttrs.version}.tar.gz";
17 hash = "sha256-bHT8VWSUqxiM/g7opRXZmEOAs2d61dWBTtuwwlzPgBc=";
33 cp -R bin etc share src $out
34 rm -rf $out/bin/windows
36 patchShebangs $out/bin
38 # allow us the specify logging directory using env
39 substituteInPlace $out/bin/kafka-run-class \
40 --replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"'
42 substituteInPlace $out/bin/ksql-run-class \
43 --replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"'
45 for p in $out/bin\/*; do
47 --set JAVA_HOME "${jre}" \
48 --set KAFKA_LOG_DIR "/tmp/apache-kafka-logs" \
49 --prefix PATH : "${jre}/bin:${bash}/bin:${gnused}/bin"
56 description = "Confluent event streaming platform based on Apache Kafka";
57 homepage = "https://www.confluent.io/";
58 license = lib.licenses.asl20;
59 maintainers = with lib.maintainers; [ zoedsoupe autophagy ];
60 platforms = lib.platforms.unix;