2020-01-19 23:51:15 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spdx-license-list-data";
|
2020-02-11 22:12:47 +01:00
|
|
|
version = "3.8";
|
2020-01-19 23:51:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spdx";
|
|
|
|
repo = "license-list-data";
|
|
|
|
rev = "v${version}";
|
2020-02-11 22:12:47 +01:00
|
|
|
sha256 = "1pfy0vbs7sk7m670mclmlkpcanizdmgsm1qgwzrw28w3hxfq7gdb";
|
2020-01-19 23:51:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2020-02-12 00:18:18 +01:00
|
|
|
platforms = lib.platforms.all;
|
2020-01-19 23:51:15 +01:00
|
|
|
};
|
|
|
|
}
|