mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
vscode, vscodium: use nix-shell to install dependencies
This commit is contained in:
parent
906b729191
commit
05e16d2886
@ -1,10 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p curl gnugrep gnused gawk
|
||||||
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; }
|
|
||||||
|
|
||||||
ROOT="$(dirname "$(readlink -f "$0")")"
|
ROOT="$(dirname "$(readlink -f "$0")")"
|
||||||
if [ ! -f "$ROOT/vscode.nix" ]; then
|
if [ ! -f "$ROOT/vscode.nix" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user