No description
Find a file
2026-02-19 11:52:31 +11:00
.github Update CI workflow to trigger on flake.nix and packages/ changes 2026-01-19 05:07:57 +00:00
packages Delete packages/h/httpgd.nix 2026-02-19 11:50:44 +11:00
test Remove httpgd library and associated calls 2026-02-19 11:51:45 +11:00
versions Delete versions/httpgd.json 2026-02-19 11:51:01 +11:00
.gitignore added summclust 2026-01-19 13:50:08 +11:00
flake.lock flake.lock: Update 2026-02-18 04:55:41 +00:00
flake.nix Update nixpkgs input URL in flake.nix 2026-02-19 11:52:31 +11: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];
          })
        ];
      };
    });
  };
}