diff options
author | happysalada <raphael@megzari.com> | 2021-07-26 23:54:33 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-07-27 12:42:19 +0900 |
commit | 69c886888368c123cf582e9343b241847e63be39 (patch) | |
tree | 1bc5156394819a49319284ca3bb69fbfc19927cb /pkgs/misc/vscode-extensions/default.nix | |
parent | e5d5dd2c9f0fbddeee21d861d879f8592c6baeeb (diff) | |
download | nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar.gz nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar.bz2 nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar.lz nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar.xz nixpkgs-69c886888368c123cf582e9343b241847e63be39.tar.zst nixpkgs-69c886888368c123cf582e9343b241847e63be39.zip |
vscode-extensions: use sponge instead of mktemp
Diffstat (limited to 'pkgs/misc/vscode-extensions/default.nix')
-rw-r--r-- | pkgs/misc/vscode-extensions/default.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/misc/vscode-extensions/default.nix b/pkgs/misc/vscode-extensions/default.nix index 3f0498168c5..2941c95bb4e 100644 --- a/pkgs/misc/vscode-extensions/default.nix +++ b/pkgs/misc/vscode-extensions/default.nix @@ -185,12 +185,10 @@ let version = "0.0.1"; sha256 = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8="; }; - nativeBuildInputs = [ jq ]; + nativeBuildInputs = [ jq moreutils ]; postInstall = '' cd "$out/$installPrefix" - tmp_package_json=$(mktemp) - jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json > "$tmp_package_json" - mv "$tmp_package_json" package.json + jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json | sponge package.json ''; meta = with lib; { license = licenses.mit; @@ -1342,12 +1340,10 @@ let version = "0.14.4"; sha256 = "05z314sw9nqym3qlj7dcwm0fz1hb23xppzqn3nr2wcj17hs8zz4m"; }; - nativeBuildInputs = [ jq ]; + nativeBuildInputs = [ jq moreutils ]; postInstall = '' cd "$out/$installPrefix" - tmp_package_json=$(mktemp) - jq '.contributes.configuration.properties."shellcheck.executablePath".default = "${shellcheck}/bin/shellcheck"' package.json > "$tmp_package_json" - mv "$tmp_package_json" package.json + jq '.contributes.configuration.properties."shellcheck.executablePath".default = "${shellcheck}/bin/shellcheck"' package.json | sponge package.json ''; meta = { license = lib.licenses.mit; |