mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
parent
beb2d052f8
commit
7c26ef068a
@ -1,12 +1,12 @@
|
||||
pkgs:
|
||||
with builtins; let
|
||||
materialized = ../../materialized + "/spdx-${pkgs.evalPackages.spdx-license-list-data.version}";
|
||||
materialized' = ../../materialized + "/spdx-${pkgs.evalPackages.spdx-license-list-data.version}";
|
||||
licensesJSON = fromJSON (replaceStrings
|
||||
[ "\\u0026" "\\u0027" "\\u003d" ]
|
||||
[ "&" "'" "=" ]
|
||||
(readFile "${pkgs.evalPackages.haskell-nix.materialize (pkgs.lib.optionalAttrs (pathExists materialized) {
|
||||
inherit materialized;
|
||||
}) (pkgs.evalPackages.runCommand "spdx-json" {} ''
|
||||
(readFile "${pkgs.evalPackages.haskell-nix.materialize {
|
||||
materialized = if pathExists materialized' then materialized' else null;
|
||||
} (pkgs.evalPackages.runCommand "spdx-json" {} ''
|
||||
mkdir $out
|
||||
cp ${pkgs.evalPackages.spdx-license-list-data.json or pkgs.evalPackages.spdx-license-list-data}/json/licenses.json $out
|
||||
'')
|
||||
|
Loading…
Reference in New Issue
Block a user