From c5d06b022b22d0e542ce2ffd0fe092317758fb03 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 19 Jan 2020 23:51:15 +0100 Subject: [PATCH] spdx-license-list-data: init at 3.7 --- .../misc/spdx-license-list-data/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/data/misc/spdx-license-list-data/default.nix diff --git a/pkgs/data/misc/spdx-license-list-data/default.nix b/pkgs/data/misc/spdx-license-list-data/default.nix new file mode 100644 index 000000000000..6be0ab73641e --- /dev/null +++ b/pkgs/data/misc/spdx-license-list-data/default.nix @@ -0,0 +1,25 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "spdx-license-list-data"; + version = "3.7"; + + src = fetchFromGitHub { + owner = "spdx"; + repo = "license-list-data"; + rev = "v${version}"; + sha256 = "1zll1d4apqh762iplzcm90v3yp3b36whc3vqx1vlmjgdrfss9jhn"; + }; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + install -vDt $out/json json/licenses.json + ''; + + meta = { + description = "Various data formats for the SPDX License List"; + homepage = "https://github.com/spdx/license-list-data"; + license = lib.licenses.cc0; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fa84cd785fb4..464371cec5cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17854,6 +17854,8 @@ in soundfont-fluid = callPackage ../data/soundfonts/fluid { }; + spdx-license-list-data = callPackage ../data/misc/spdx-license-list-data { }; + stdmanpages = callPackage ../data/documentation/std-man-pages { }; starship = callPackage ../tools/misc/starship {