-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
30 lines (28 loc) · 868 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ pkgs ? import <nixpkgs> {} }:
let
azcopy = pkgs.stdenv.mkDerivation {
pname = "azcopy";
version = "10.13.0"; # Update to the latest version if needed
src = pkgs.fetchurl {
url = "https://github.com/Azure/azure-storage-azcopy/releases/download/v10.13.0/azcopy_linux_amd64_10.13.0.tar.gz"; # Correct URL
sha256 = "0000000000000000000000000000000000000000000000000000"; # Placeholder hash
};
nativeBuildInputs = [ pkgs.stdenv ];
installPhase = ''
mkdir -p $out/bin
cp ./azcopy $out/bin/
'';
};
in
pkgs.mkShell {
buildInputs = [
azcopy
pkgs.azure-cli
];
# Customize this message with commands or instructions
shellHook = ''
echo "Azure CLI and azcopy are installed.
Run 'az login' to configure your Azure account.
Refer to the Azure CLI documentation for available commands."
'';
}