mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
32 lines
822 B
Nix
32 lines
822 B
Nix
{
|
|
description = "Basic flake template for setting up this project.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
ruby-nix.url = "github:sagittaros/ruby-nix";
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, ... }:
|
|
let
|
|
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; };
|
|
|
|
formatter = pkgs.treefmt;
|
|
});
|
|
}
|