mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
spdx json file is in a .json
output for latest nixpkgs (#1397)
See https://github.com/NixOS/nixpkgs/pull/161958
This commit is contained in:
parent
185dc162b3
commit
6fce9ef514
@ -3,7 +3,7 @@ with builtins; let
|
||||
licensesJSON = fromJSON (replaceStrings
|
||||
[ "\\u0026" "\\u0027" "\\u003d" ]
|
||||
[ "&" "'" "=" ]
|
||||
(readFile "${pkgs.evalPackages.spdx-license-list-data}/json/licenses.json")
|
||||
(readFile "${pkgs.evalPackages.spdx-license-list-data.json or pkgs.evalPackages.spdx-license-list-data}/json/licenses.json")
|
||||
);
|
||||
dropFour = s: substring 0 (stringLength s - 4) s;
|
||||
toSpdx = lic: with lic;
|
||||
|
Loading…
Reference in New Issue
Block a user