2023-07-07 04:11:42 +00:00
|
|
|
{
|
2023-11-24 03:42:08 +00:00
|
|
|
description = "Flake for setting up asciidoctor-foodogsquared-extensions";
|
2023-07-07 04:11:42 +00:00
|
|
|
|
|
|
|
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; };
|
2023-11-17 14:11:13 +00:00
|
|
|
gems = ruby-nix.lib pkgs {
|
|
|
|
name = "asciidoctor-foodogsquared-extensions";
|
|
|
|
ruby = pkgs.ruby_3_1;
|
|
|
|
gemset = ./gemset.nix;
|
|
|
|
};
|
2023-07-07 04:11:42 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default =
|
2023-11-17 14:02:56 +00:00
|
|
|
import ./shell.nix {
|
2023-11-17 14:11:13 +00:00
|
|
|
inherit pkgs;
|
|
|
|
extraBuildInputs = [
|
|
|
|
gems.env
|
|
|
|
gems.ruby
|
|
|
|
];
|
2023-11-17 14:02:56 +00:00
|
|
|
extraPackages = [
|
|
|
|
inputs.ruby-nix-bundix.packages."${system}".default
|
|
|
|
];
|
|
|
|
};
|
2023-07-07 04:11:42 +00:00
|
|
|
|
|
|
|
formatter = pkgs.treefmt;
|
|
|
|
});
|
|
|
|
}
|