Skip to content

Commit

Permalink
Create default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues authored Oct 16, 2024
1 parent 78ef6ee commit 48aadcf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
let
pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/refs/heads/2021-01-01.tar.gz") {};
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocalesUtf8 nix;
};
r_packages = builtins.attrValues {
inherit (pkgs.rPackages)
tidyverse;
};
wrapped_pkgs = pkgs.rWrapper.override {
packages = [ r_packages ];
};
in
pkgs.mkShell {
LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive" else "";
LANG = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";

buildInputs = [ system_packages r_packages tex wrapped_pkgs ];

}

0 comments on commit 48aadcf

Please sign in to comment.