Add gh CLI tool as a dependency in nix-shell
This commit is contained in:
@@ -1,23 +1,8 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
cmake
|
||||
gnumake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
zstd
|
||||
];
|
||||
|
||||
NIX_ENFORCE_PURITY = 0;
|
||||
|
||||
{ pkgs }: {
|
||||
shellHook = ''
|
||||
export NIX_ENFORCE_PURITY=0
|
||||
cmake -B build
|
||||
echo "Setting up environment with gh CLI tool"
|
||||
'';
|
||||
buildInputs = [
|
||||
pkgs.gh
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user