Skip to content

Commit

Permalink
add more devshell tools
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnreal committed May 18, 2024
1 parent b0ac7b0 commit 8ea00ff
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 5 deletions.
134 changes: 131 additions & 3 deletions flake.lock

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

12 changes: 10 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
poetry2nix.url = "github:bchmnn/poetry2nix";
};

outputs = {
systems,
nixpkgs,
treefmt-nix,
poetry2nix,
...
}: let
# Small tool to iterate over each systems
Expand All @@ -30,15 +32,21 @@
settings.formatter.alejandra.excludes = ["2configs/vscode/extensions.nix"];
}));
in {
devShells = eachSystem (pkgs: {
devShells = eachSystem (pkgs: let
inherit (poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}) mkPoetryEnv;
in {
default = pkgs.mkShell {
packages = [
pkgs.docker-compose_1
pkgs.elixir_1_16
pkgs.cargo
pkgs.netcat
pkgs.enochecker-test
pkgs.curl
(mkPoetryEnv {projectDir = ./checker;})
pkgs.poetry
pkgs.php83
pkgs.php83Packages.composer
pkgs.openssl
];
shellHook = ''
export PROFILE=debug
Expand Down

0 comments on commit 8ea00ff

Please sign in to comment.