No description
Find a file
copilot-swe-agent[bot] 789df109ed Refactor: Pass 'final' only to packages that need it (fwildclusterboot)
Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
2026-01-19 05:49:50 +00:00
.github Update CI workflow to trigger on flake.nix and packages/ changes 2026-01-19 05:07:57 +00:00
packages Refactor: Pass 'final' only to packages that need it (fwildclusterboot) 2026-01-19 05:49:50 +00:00
test Removed nvimcom 2026-01-19 15:44:32 +11:00
versions added summclust 2026-01-19 13:50:08 +11:00
.gitignore added summclust 2026-01-19 13:50:08 +11:00
flake.lock added summclust 2026-01-19 13:50:08 +11:00
flake.nix Refactor packages into modular structure under packages/ directory 2026-01-19 05:06:39 +00:00
README.md Added usage example 2025-09-12 21:05:07 +10:00

Usage

Based on the-nix-way

{
  description = "A Nix-flake-based R development environment";

  inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
  inputs.fran.url = "github:dwinkler1/fran";
  inputs.fran.inputs.nixpkgs.follows = "nixpkgs";

  outputs = inputs: let
    supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
    forEachSupportedSystem = f:
      inputs.nixpkgs.lib.genAttrs supportedSystems (system:
        f {
          pkgs = import inputs.nixpkgs {
            inherit system;
            overlays = [inputs.fran.overlays.default];
          };
        });
    mkR = inputs.fran.lib.mkR;
  in {
    devShells = forEachSupportedSystem ({pkgs}: {
      default = pkgs.mkShell {
        packages = with pkgs; [
          (mkR {
            inherit pkgs;
            packages = [rPackages.data_table extraRPackages.fwildclusterboot];
          })
        ];
      };
    });
  };
}