3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/misc/spdx-license-list-data/default.nix

30 lines
687 B
Nix
Raw Normal View History

{ stdenvNoCC, lib, fetchFromGitHub }:
2020-01-19 22:51:15 +00:00
stdenvNoCC.mkDerivation rec {
2020-01-19 22:51:15 +00:00
pname = "spdx-license-list-data";
2021-08-12 22:13:57 +01:00
version = "3.14";
2020-01-19 22:51:15 +00:00
src = fetchFromGitHub {
owner = "spdx";
repo = "license-list-data";
rev = "v${version}";
2021-08-12 22:13:57 +01:00
sha256 = "07fl31732bvcmm93fqrpa7pfq5ynxc1fpd8n9w2iah39lyz49sjm";
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
};
}