vscode: update the updaters!

Now they use update-shell.nix auxiliar file.
This commit is contained in:
AndersonTorres 2022-02-17 21:15:04 -03:00
parent 8f868e154c
commit 2d98f7cff3
4 changed files with 27 additions and 7 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env nix-shell #! /usr/bin/env nix-shell
#!nix-shell -i bash -p jq nix-prefetch #! nix-shell ../../update-shell.nix -i bash
set -eo pipefail set -eo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" cd "$(dirname "${BASH_SOURCE[0]}")"
if [[ $# -ne 1 ]]; then if [[ $# -ne 1 ]]; then
@ -12,7 +13,8 @@ FIXME: This script doesn't update patched lldb. Please manually check branches
of https://github.com/vadimcn/llvm-project and update lldb with correct version of LLVM. of https://github.com/vadimcn/llvm-project and update lldb with correct version of LLVM.
" "
nixpkgs=../../../.. # Ideally, nixpkgs points to default.nix file of Nixpkgs official tree
nixpkgs=../../../../../..
nixFile=./default.nix nixFile=./default.nix
owner=vadimcn owner=vadimcn
repo=vscode-lldb repo=vscode-lldb

View File

@ -0,0 +1,18 @@
{ pkgs ? import ../../../.. { } }:
# Ideally, pkgs points to default.nix file of Nixpkgs official tree
with pkgs;
mkShell {
packages = [
bash
curl
gawk
gnugrep
gnused
jq
nix
nix-prefetch
nix-prefetch-scripts
];
}

View File

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #! /usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq gnused #! nix-shell update-shell.nix -i bash
# Update script for the vscode versions and hashes. # Update script for the vscode versions and hashes.
# Usually doesn't need to be called by hand, # Usually doesn't need to be called by hand,

View File

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #! /usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnugrep gnused gawk #! nix-shell update-shell.nix -i bash
# Update script for the vscode versions and hashes. # Update script for the vscode versions and hashes.
# Usually doesn't need to be called by hand, # Usually doesn't need to be called by hand,