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-11-22 00:15:53 +01:00
version = "3.15";
2020-01-19 23:51:15 +01:00
src = fetchFromGitHub {
owner = "spdx";
repo = "license-list-data";
rev = "v${version}";
2021-11-22 00:15:53 +01:00
sha256 = "0r88j00shmhayfq8avswaxsaj1my1vq540rg0srma29862vrjpfk";
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
};
}