diff options
author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2021-11-03 13:43:23 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-11-03 14:43:52 +0100 |
commit | 8547db919a05c86fe724b972b3130f305d6f4267 (patch) | |
tree | e32513b8699ad0fc393245b6528d867065787b01 /pkgs/tools/security/onlykey | |
parent | c463cb880c4e85e116192d1e4a1c9bdf0072da1d (diff) |
treewide: switch ``builtins.fromJSON(builtins.readFile ./file.json)`` to lib.importJSON ./file.json
Diffstat (limited to 'pkgs/tools/security/onlykey')
-rw-r--r-- | pkgs/tools/security/onlykey/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/security/onlykey/default.nix b/pkgs/tools/security/onlykey/default.nix index 4cad7e513acd1..312f580c02395 100644 --- a/pkgs/tools/security/onlykey/default.nix +++ b/pkgs/tools/security/onlykey/default.nix @@ -12,7 +12,7 @@ let # parse the version from package.json version = let - packageJson = builtins.fromJSON (builtins.readFile ./package.json); + packageJson = lib.importJSON ./package.json; splits = builtins.split "^.*#v(.*)$" (builtins.getAttr "onlykey" (builtins.head packageJson)); matches = builtins.elemAt splits 1; elem = builtins.head matches; |