Skip to content

Commit

Permalink
update and simplify flake.nix (#2895)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jun 1, 2024
1 parent 5ef9982 commit 1490aa0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

26 changes: 9 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = {nixpkgs, ...}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
Expand All @@ -17,21 +15,15 @@
devShells = forAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
node = pkgs.nodejs_20;
corepackEnable = pkgs.runCommand "corepack-enable" {} ''
mkdir -p $out/bin
${node}/bin/corepack enable --install-directory $out/bin
'';
in {
default = with pkgs;
mkShell {
buildInputs = [
corepackEnable
bun
deno
node
];
};
default = pkgs.mkShell {
buildInputs = with pkgs; [
bun
corepack
deno
nodejs-slim_22
];
};
}
);
};
Expand Down

0 comments on commit 1490aa0

Please sign in to comment.