2020-01-19 22:51:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spdx-license-list-data";
|
2021-03-18 09:57:29 +00:00
|
|
|
version = "3.12";
|
2020-01-19 22:51:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spdx";
|
|
|
|
repo = "license-list-data";
|
|
|
|
rev = "v${version}";
|
2021-03-18 09:57:29 +00:00
|
|
|
sha256 = "09xci8dzblg3d30jf7s43zialbcxlxly03zrkiymcvnzixg8v48f";
|
2020-01-19 22:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-18 09:57:29 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-01-19 22:51:15 +00:00
|
|
|
install -vDt $out/json json/licenses.json
|
2021-03-18 09:57:29 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-01-19 22:51:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-18 09:57:29 +00:00
|
|
|
meta = with lib; {
|
2020-01-19 22:51:15 +00:00
|
|
|
description = "Various data formats for the SPDX License List";
|
|
|
|
homepage = "https://github.com/spdx/license-list-data";
|
2021-03-18 09:57:29 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ oxzi ];
|
|
|
|
platforms = platforms.all;
|
2020-01-19 22:51:15 +00:00
|
|
|
};
|
|
|
|
}
|