···11-{ elk6Version
22-, enableUnfree ? true
33-, lib, stdenv
44-, fetchurl
55-, makeWrapper
66-, nixosTests
77-, jre
88-}:
99-1010-let this = stdenv.mkDerivation rec {
1111- version = elk6Version;
1212- pname = "logstash${lib.optionalString (!enableUnfree) "-oss"}";
1313-1414- src = fetchurl {
1515- url = "https://artifacts.elastic.co/downloads/logstash/${pname}-${version}.tar.gz";
1616- sha256 =
1717- if enableUnfree
1818- then "0hij1byw5b3xmk3vshr9p7gxwbjrywr7ylps05ydc2dmnz8q2a79"
1919- else "1fa236pvhj7spys54nqi3k64rwzf6zi6gaccmqg4p4sh92jzsybv";
2020- };
2121-2222- dontBuild = true;
2323- dontPatchELF = true;
2424- dontStrip = true;
2525- dontPatchShebangs = true;
2626-2727- nativeBuildInputs = [
2828- makeWrapper
2929- ];
3030-3131- buildInputs = [
3232- jre
3333- ];
3434-3535- installPhase = ''
3636- runHook preInstall
3737- mkdir -p $out
3838- cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
3939-4040- patchShebangs $out/bin/logstash
4141- patchShebangs $out/bin/logstash-plugin
4242-4343- wrapProgram $out/bin/logstash \
4444- --set JAVA_HOME "${jre}"
4545-4646- wrapProgram $out/bin/logstash-plugin \
4747- --set JAVA_HOME "${jre}"
4848- runHook postInstall
4949- '';
5050-5151- meta = with lib; {
5252- description = "A data pipeline that helps you process logs and other event data from a variety of systems";
5353- homepage = "https://www.elastic.co/products/logstash";
5454- sourceProvenance = with sourceTypes; [
5555- fromSource
5656- binaryBytecode # source bundles dependencies as jars
5757- binaryNativeCode # bundled jruby includes native code
5858- ];
5959- license = if enableUnfree then licenses.elastic else licenses.asl20;
6060- platforms = platforms.unix;
6161- maintainers = with maintainers; [ wjlroe offline basvandijk ];
6262- };
6363- passthru.tests =
6464- lib.optionalAttrs (!enableUnfree) (
6565- assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath;
6666- {
6767- elk = nixosTests.elk.ELK-6;
6868- }
6969- );
7070-};
7171-in this
+2
pkgs/top-level/aliases.nix
···957957958958 loadcaffe = throw "loadcaffe has been removed, as the upstream project has been abandoned"; # Added 2020-03-28
959959 lobster-two = google-fonts; # Added 2021-07-22
960960+ logstash6 = throw "logstash6 has been removed because it reached end of life"; # Added 2022-10-04
961961+ logstash6-oss = throw "logstash6 has been removed because it reached end of life"; # Added 2022-10-04
960962 love_0_7 = throw "love_0_7 was removed because it is a very old version and no longer used by any package in nixpkgs"; # Added 2022-01-15
961963 love_0_8 = throw "love_0_8 was removed because it is a very old version and no longer used by any package in nixpkgs"; # Added 2022-01-15
962964 love_0_9 = throw "love_0_9 was removed because was broken for a long time and no longer used by any package in nixpkgs"; # Added 2022-01-15