2022-03-01 10:00:18 +00:00
|
|
|
{
|
|
|
|
description = "Basic flake template for setting up this project.";
|
|
|
|
|
|
|
|
inputs = {
|
2022-11-22 14:32:35 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-03-01 10:00:18 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-02-25 04:11:54 +00:00
|
|
|
ruby-nix.url = "github:sagittaros/ruby-nix";
|
2022-03-01 10:00:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ self, nixpkgs, ... }:
|
2023-02-25 04:11:54 +00:00
|
|
|
let
|
|
|
|
systems = inputs.flake-utils.lib.defaultSystems;
|
|
|
|
overlays = [ inputs.ruby-nix.overlays.ruby ];
|
2022-03-01 10:00:18 +00:00
|
|
|
in inputs.flake-utils.lib.eachSystem systems (system:
|
2023-02-25 04:11:54 +00:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = overlays ++ [
|
|
|
|
(final: prev: {
|
|
|
|
ruby-nix = inputs.ruby-nix.lib prev;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2022-03-01 10:00:18 +00:00
|
|
|
in {
|
2023-02-25 04:11:54 +00:00
|
|
|
devShells.default = import ./shell.nix { inherit pkgs; };
|
|
|
|
|
2022-03-01 10:00:18 +00:00
|
|
|
});
|
|
|
|
}
|