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

27 lines
628 B
Nix
Raw Normal View History

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