From d370593769d6698b985a843bae8d7889f7600c79 Mon Sep 17 00:00:00 2001 From: macronova Date: Mon, 30 Oct 2023 17:48:54 -0700 Subject: [PATCH] Add R template --- template/r/flake.nix | 19 +++++++++++++++++++ template/{rust-nightly => rust}/flake.nix | 0 2 files changed, 19 insertions(+) create mode 100644 template/r/flake.nix rename template/{rust-nightly => rust}/flake.nix (100%) diff --git a/template/r/flake.nix b/template/r/flake.nix new file mode 100644 index 0000000..91255ed --- /dev/null +++ b/template/r/flake.nix @@ -0,0 +1,19 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, flake-utils, nixpkgs }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + (rWrapper.override { + packages = with rPackages; [ tidyverse ]; + }) + ]; + }; + }); +} diff --git a/template/rust-nightly/flake.nix b/template/rust/flake.nix similarity index 100% rename from template/rust-nightly/flake.nix rename to template/rust/flake.nix