Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "spdx-license-list-data";
|
|
version = "3.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spdx";
|
|
repo = "license-list-data";
|
|
rev = "v${version}";
|
|
hash = "sha256-TRrsxk+gtxI9KqJvFzD0Cfy1h5cZAJ2kT9KUARjlXcY=";
|
|
};
|
|
|
|
# List of file formats to package.
|
|
_types = [
|
|
"html"
|
|
"json"
|
|
"jsonld"
|
|
"rdfa"
|
|
"rdfnt"
|
|
"rdfturtle"
|
|
"rdfxml"
|
|
"template"
|
|
"text"
|
|
];
|
|
|
|
outputs = [ "out" ] ++ _types;
|
|
|
|
dontPatch = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -pv $out
|
|
for t in $_types
|
|
do
|
|
_outpath=''${!t}
|
|
mkdir -pv $_outpath
|
|
cp -ar $t $_outpath && echo "$t format installed"
|
|
done
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
dontFixup = true;
|
|
|
|
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
|
|
c0bw3b
|
|
];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|