website/flake.nix

32 lines
822 B
Nix
Raw Normal View History

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