{ description = "radicle.xyz"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/release-25.05"; flake-utils.url = "github:numtide/flake-utils"; bundix = { url = "github:inscapist/bundix/main"; inputs.nixpkgs.follows = "nixpkgs"; }; ruby-nix = { url = "github:inscapist/ruby-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, flake-utils, bundix, ruby-nix, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; overlays = [ruby-nix.overlays.ruby]; }; rubyNix = ruby-nix.lib pkgs; bundixcli = bundix.packages.${system}.default; deps = with pkgs; [env ruby bundixcli wrangler]; inherit (rubyNix { name = "seroperson.gitlab.io"; gemset = ./gemset.nix; gemConfig = pkgs.defaultGemConfig; }) env ruby ; in { packages = let bundlecli = pkgs.writeShellApplication { name = "bundle"; runtimeInputs = deps; text = '' export BUNDLE_PATH=vendor/bundle bundle "$@" ''; }; jekyll = pkgs.writeShellApplication { name = "jekyll"; runtimeInputs = deps; text = '' if [ $# -eq 0 ]; then jekyll build else jekyll "$@" fi ''; }; in { jekyll = jekyll; bundle = bundlecli; bundix = bundixcli; default = jekyll; }; devShells.default = pkgs.mkShell { shellHook = '' export BUNDLE_PATH=vendor/bundle ''; buildInputs = deps; }; }); }