devshell/flake.nix

36 lines
1 KiB
Nix
Raw Permalink Normal View History

2023-12-08 13:18:23 +05:30
{
description = "A collection of handy dev-shells";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
2023-12-09 12:52:56 +05:30
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
2023-12-08 13:18:23 +05:30
};
2023-12-09 12:52:56 +05:30
outputs = { self, nixpkgs, flake-utils, rust-overlay }: flake-utils.lib.eachDefaultSystem (system:
2023-12-08 13:18:23 +05:30
let
pkgs = import nixpkgs {
inherit system;
2023-12-09 12:52:56 +05:30
overlays = [ rust-overlay.overlays.default ];
2023-12-08 13:18:23 +05:30
};
in
{
2023-12-08 13:18:53 +05:30
devShells = {
2023-12-08 15:16:15 +05:30
go = import ./shells/go.nix { inherit pkgs; };
haskell = import ./shells/haskell.nix { inherit pkgs; };
2024-01-12 19:06:30 +05:30
java = import ./shells/java.nix { inherit pkgs; };
node = import ./shells/node.nix { inherit pkgs; };
2023-12-08 15:16:15 +05:30
python = import ./shells/python.nix { inherit pkgs; };
2024-03-10 10:13:01 +05:30
ruby = import ./shells/ruby.nix { inherit pkgs; };
2023-12-08 15:22:58 +05:30
rust = import ./shells/rust.nix { inherit pkgs; };
2023-12-08 13:18:53 +05:30
};
2023-12-08 13:18:23 +05:30
}
);
}