Skip to content

Commit

Permalink
chore(dx): adds develop shell
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Nov 11, 2024
1 parent df25e82 commit df5084d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = import ./nix/development-environment.nix { inherit pkgs; };

checks = {
fmt = pkgs.runCommand "check-fmt" {} ''
echo "Checking formatting..."
touch $out
'';
};

devShells.default = import ./shell.nix { inherit pkgs; };
});
}
8 changes: 0 additions & 8 deletions nix/development-environment.nix

This file was deleted.

3 changes: 0 additions & 3 deletions nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@
./osx/configuration.nix
];
};

devShells."x86_64-linux".default = import ./nix/development-environment.nix { inherit nixpkgs; };
devShells."aarch64-darwin".default = import ./nix/development-environment.nix { inherit nixpkgs; };
};
}
9 changes: 5 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs }:
pkgs.mkShell {
buildInputs = [
pkgs.zip
pkgs.unzip
buildInputs = with pkgs; [
statix # nix linter

nil # nix lsp for vim
];
}

0 comments on commit df5084d

Please sign in to comment.