From 05e16d2886e90d799b5076099142b68def21cf6e Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Sat, 13 Jun 2020 08:56:51 +0200 Subject: [PATCH] vscode, vscodium: use nix-shell to install dependencies --- pkgs/applications/editors/vscode/update.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/editors/vscode/update.sh b/pkgs/applications/editors/vscode/update.sh index 7453cc9c89c8..d573fdf04aaf 100755 --- a/pkgs/applications/editors/vscode/update.sh +++ b/pkgs/applications/editors/vscode/update.sh @@ -1,10 +1,5 @@ -#!/usr/bin/env bash - -command -v grep >/dev/null 2>&1 || { echo >&2 "[grep] is required, but not installed. Aborting."; exit 1; } -command -v awk >/dev/null 2>&1 || { echo >&2 "[awk] is required, but not installed. Aborting."; exit 1; } -command -v sed >/dev/null 2>&1 || { echo >&2 "[sed] is required, but not installed. Aborting."; exit 1; } -command -v curl >/dev/null 2>&1 || { echo >&2 "[curl] is required, but not installed. Aborting."; exit 1; } -command -v nix-prefetch-url >/dev/null 2>&1 || { echo >&2 "[nix-prefetch-url] is required, but not installed. Aborting."; exit 1; } +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p curl gnugrep gnused gawk ROOT="$(dirname "$(readlink -f "$0")")" if [ ! -f "$ROOT/vscode.nix" ]; then