Skip to content

Commit

Permalink
feat: add snowcli and snowsql to the image
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-vtimofeenko committed Feb 27, 2024
1 parent 9eb1ff9 commit d11e92f
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
110 changes: 110 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.follows = "nixpkgs-stable";

snowcli = {
url = "github:sfc-gh-vtimofeenko/snowcli-nix-flake";

inputs = {
nixpkgs-unstable.follows = "nixpkgs-unstable";
nixpkgs-stable.follows = "nixpkgs-stable";
nixpkgs.follows = "nixpkgs";
# Only using 2x in this flake
snowcli-src-1x.follows = "";
snowflake-connector-python-1x.follows = "";
# development
devshell.follows = "devshell";
pre-commit-hooks-nix.follows = "pre-commit-hooks-nix";
treefmt-nix.follows = "treefmt-nix";
};
};

devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs-unstable";
Expand Down Expand Up @@ -43,7 +60,11 @@
}:
let
spcsTargetSystem = "x86_64-linux";
spcsTargetPkgs = import inputs.nixpkgs { system = spcsTargetSystem; overlays = [ ]; };
spcsTargetPkgs = import inputs.nixpkgs {
system = spcsTargetSystem;
overlays = [ inputs.snowcli.overlays.default ];
config.allowUnfreePredicate = pkg: builtins.elem (pkgs.lib.getName pkg) [ "snowsql" ];
};
in
{
packages.ttydContainer = import ./packages/ttydContainer/package.nix { targetPkgs = spcsTargetPkgs; inherit self; };
Expand Down
2 changes: 2 additions & 0 deletions packages/ttydContainer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ let
inetutils# Telnet
htop# Some monitoring
gnugrep
snowcli-2x
snowsql
;
})
++ [ nixConfig fixUpEnv ];
Expand Down

0 comments on commit d11e92f

Please sign in to comment.