From e39d57991886bcae28a1c7f51afa66ebdfb56a72 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 27 Aug 2023 18:29:26 +0200 Subject: [PATCH] lib/licenses: add Elastic License 2.0, drop Elastic License This license was introduced in the Elastic search repository by this commit: https://github.com/elastic/elasticsearch/commit/a92a647b9f17d1bddf5c707490a19482c273eda3 It appears that all the the packages in nixpkgs using the Elastic License are using the v2.0. --- lib/licenses.nix | 6 +++--- pkgs/development/tools/bearer/default.nix | 2 +- pkgs/development/tools/misc/kibana/7.x.nix | 2 +- pkgs/servers/http/router/default.nix | 2 +- pkgs/servers/search/elasticsearch/7.x.nix | 2 +- pkgs/tools/admin/infra/default.nix | 2 +- pkgs/tools/misc/logstash/7.x.nix | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/licenses.nix b/lib/licenses.nix index 599e8ee53c93..6bbfb348f0b0 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -413,9 +413,9 @@ in mkLicense lset) ({ fullName = "Eiffel Forum License v2.0"; }; - elastic = { - fullName = "ELASTIC LICENSE"; - url = "https://github.com/elastic/elasticsearch/blob/master/licenses/ELASTIC-LICENSE.txt"; + elastic20 = { + fullName = "Elastic License 2.0"; + url = "https://github.com/elastic/elasticsearch/blob/main/licenses/ELASTIC-LICENSE-2.0.txt"; free = false; }; diff --git a/pkgs/development/tools/bearer/default.nix b/pkgs/development/tools/bearer/default.nix index d662ee9e42cc..93e057112c1a 100644 --- a/pkgs/development/tools/bearer/default.nix +++ b/pkgs/development/tools/bearer/default.nix @@ -39,7 +39,7 @@ buildGoModule rec { description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks"; homepage = "https://github.com/bearer/bearer"; changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}"; - license = with licenses; [ elastic ]; + license = with licenses; [ elastic20 ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/tools/misc/kibana/7.x.nix b/pkgs/development/tools/misc/kibana/7.x.nix index eaf5247a4165..fbed2b15488a 100644 --- a/pkgs/development/tools/misc/kibana/7.x.nix +++ b/pkgs/development/tools/misc/kibana/7.x.nix @@ -53,7 +53,7 @@ in stdenv.mkDerivation rec { meta = with lib; { description = "Visualize logs and time-stamped data"; homepage = "http://www.elasticsearch.org/overview/kibana"; - license = licenses.elastic; + license = licenses.elastic20; maintainers = with maintainers; [ offline basvandijk ]; platforms = with platforms; unix; }; diff --git a/pkgs/servers/http/router/default.nix b/pkgs/servers/http/router/default.nix index 31fc8332c96e..b7b33c1d176c 100644 --- a/pkgs/servers/http/router/default.nix +++ b/pkgs/servers/http/router/default.nix @@ -40,7 +40,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "A configurable, high-performance routing runtime for Apollo Federation"; homepage = "https://www.apollographql.com/docs/router/"; - license = licenses.elastic; + license = licenses.elastic20; maintainers = [ maintainers.bbigras ]; }; } diff --git a/pkgs/servers/search/elasticsearch/7.x.nix b/pkgs/servers/search/elasticsearch/7.x.nix index 6eea9d751d51..1fbd64df29c9 100644 --- a/pkgs/servers/search/elasticsearch/7.x.nix +++ b/pkgs/servers/search/elasticsearch/7.x.nix @@ -76,7 +76,7 @@ stdenv.mkDerivation rec { binaryBytecode binaryNativeCode ]; - license = licenses.elastic; + license = licenses.elastic20; platforms = platforms.unix; maintainers = with maintainers; [ apeschar basvandijk ]; }; diff --git a/pkgs/tools/admin/infra/default.nix b/pkgs/tools/admin/infra/default.nix index f5189203943b..bfb44acc6ed5 100644 --- a/pkgs/tools/admin/infra/default.nix +++ b/pkgs/tools/admin/infra/default.nix @@ -21,7 +21,7 @@ buildGoModule rec { description = "Infra manages access to infrastructure such as Kubernetes"; homepage = "https://github.com/infrahq/infra"; changelog = "https://github.com/infrahq/infra/raw/v${version}/CHANGELOG.md"; - license = licenses.elastic; + license = licenses.elastic20; maintainers = with maintainers; [ peterromfeldhk ]; }; } diff --git a/pkgs/tools/misc/logstash/7.x.nix b/pkgs/tools/misc/logstash/7.x.nix index 7bbc5bd6a0df..2ca8f925827b 100644 --- a/pkgs/tools/misc/logstash/7.x.nix +++ b/pkgs/tools/misc/logstash/7.x.nix @@ -72,7 +72,7 @@ let binaryBytecode # source bundles dependencies as jars binaryNativeCode # bundled jruby includes native code ]; - license = if enableUnfree then licenses.elastic else licenses.asl20; + license = if enableUnfree then licenses.elastic20 else licenses.asl20; platforms = platforms.unix; maintainers = with maintainers; [ wjlroe offline basvandijk ]; };