Skip to content

Commit

Permalink
Update the Nix flake to provide the devShell for x86_64-linux only.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Aug 25, 2024
1 parent 5233d8e commit ed6aade
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 61 deletions.
46 changes: 6 additions & 40 deletions flake.lock

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

40 changes: 19 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:paveloom/nixpkgs/system";
};

outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
name = "flowey-shell";
nativeBuildInputs = with pkgs; [
bashInteractive
nil
nixfmt-rfc-style
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
name = "flowey-shell";

nodejs_latest
nativeBuildInputs = with pkgs; [
bashInteractive
nil
nixfmt-rfc-style

python312
];
};
}
);
nodejs_latest

python312
];
};
};
}

0 comments on commit ed6aade

Please sign in to comment.