nixpkgs/pkgs/data/misc/spdx-license-list-data/default.nix
2021-03-18 13:57:54 +01:00

30 lines
679 B
Nix

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