2023-07-07 04:11:42 +00:00
|
|
|
{
|
|
|
|
description = "Basic flake template for setting up development shells";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-07-07 09:13:32 +00:00
|
|
|
|
2023-11-17 14:02:56 +00:00
|
|
|
ruby-nix.url = "github:inscapist/ruby-nix";
|
2023-07-07 09:13:32 +00:00
|
|
|
ruby-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-17 14:02:56 +00:00
|
|
|
|
|
|
|
ruby-nix-bundix.url = "github:inscapist/bundix";
|
|
|
|
ruby-nix-bundix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-07-07 04:11:42 +00:00
|
|
|
};
|
|
|
|
|
2023-07-07 09:13:32 +00:00
|
|
|
outputs = inputs@{ self, ruby-nix, nixpkgs, ... }:
|
2023-07-07 04:11:42 +00:00
|
|
|
let systems = inputs.flake-utils.lib.defaultSystems;
|
|
|
|
in inputs.flake-utils.lib.eachSystem systems (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default =
|
2023-11-17 14:02:56 +00:00
|
|
|
import ./shell.nix {
|
|
|
|
inherit pkgs ruby-nix;
|
|
|
|
extraPackages = [
|
|
|
|
inputs.ruby-nix-bundix.packages."${system}".default
|
|
|
|
];
|
|
|
|
};
|
2023-07-07 04:11:42 +00:00
|
|
|
|
|
|
|
formatter = pkgs.treefmt;
|
|
|
|
});
|
|
|
|
}
|