Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

spdx-license-list-data: make all formats available

Since the whole lot is quite big, split this derivation into multiple
outputs (one output for each file format).

And update to v3.16

Co-authored-by: Alvar Penning <post@0x21.biz>

c0bw3b 88198555 36fae616

+21 -4
+21 -4
pkgs/data/misc/spdx-license-list-data/default.nix
··· 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "spdx-license-list-data"; 5 - version = "3.15"; 5 + version = "3.16"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "spdx"; 9 9 repo = "license-list-data"; 10 10 rev = "v${version}"; 11 - sha256 = "0r88j00shmhayfq8avswaxsaj1my1vq540rg0srma29862vrjpfk"; 11 + hash = "sha256-FPN9EIwXtz0b1tUZ/AOWK2zj2nfd5+POGmRC52mSzcA="; 12 12 }; 13 + 14 + # List of file formats to package. 15 + _types = [ "html" "json" "jsonld" "rdfa" "rdfnt" "rdfturtle" "rdfxml" "template" "text" ]; 16 + 17 + outputs = [ "out" ] ++ _types; 18 + 19 + dontPatch = true; 20 + dontConfigure = true; 21 + dontBuild = true; 13 22 14 23 installPhase = '' 15 24 runHook preInstall 16 25 17 - install -vDt $out/json json/licenses.json 26 + mkdir -pv $out 27 + for t in $_types 28 + do 29 + _outpath=''${!t} 30 + mkdir -pv $_outpath 31 + cp -ar $t $_outpath && echo "$t format installed" 32 + done 18 33 19 34 runHook postInstall 20 35 ''; 21 36 37 + dontFixup = true; 38 + 22 39 meta = with lib; { 23 40 description = "Various data formats for the SPDX License List"; 24 41 homepage = "https://github.com/spdx/license-list-data"; 25 42 license = licenses.cc0; 26 - maintainers = with maintainers; [ oxzi ]; 43 + maintainers = with maintainers; [ oxzi c0bw3b ]; 27 44 platforms = platforms.all; 28 45 }; 29 46 }