diff --git a/lib/lib/text.nix b/lib/lib/text.nix index d6cdab4..b0bf1b8 100644 --- a/lib/lib/text.nix +++ b/lib/lib/text.nix @@ -5,13 +5,12 @@ let get-basename-without-hash = filename: head (builtins.match "^[a-zA-Z0-9]+-(.+)$" (baseNameOf filename)); - format-json-file = filename: pkgs.stdenv.mkDerivation { - name = "formatted-${get-basename-without-hash filename}"; - phases = [ "installPhase" ]; - buildInputs = with pkgs; [ python ]; - installPhase = "python -mjson.tool ${filename} > $out"; - }; + format-json-file = filename: + pkgs.stdenv.mkDerivation { + name = "formatted-${get-basename-without-hash filename}"; + phases = [ "installPhase" ]; + buildInputs = with pkgs; [ python3 ]; + installPhase = "python -mjson.tool ${filename} > $out"; + }; -in { - inherit format-json-file; -} +in { inherit format-json-file; }