nixpkgs-suyu/pkgs/data/misc/spdx-license-list-data/default.nix

30 lines
687 B
Nix
Raw Normal View History

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