ropensci / rix

Reproducible Data Science environments for R with Nix
https://docs.ropensci.org/rix/
GNU General Public License v3.0
180 stars 15 forks source link

improve formatting #174

Closed philipp-baumann closed 4 months ago

philipp-baumann commented 5 months ago

just some little indenting: diff

--- Input   
+++ Output  
@@ -25,26 +25,26 @@
 # which will install R version bleeding_edge
 # Report any issues to https://github.com/b-rodrigues/rix
 let
- pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/refs/heads/r-daily.tar.gz") {};
- rpkgs = builtins.attrValues {
-  inherit (pkgs.rPackages) devtools diffviewer fledge codetools jsonlite httr sys testthat knitr rmarkdown;
-};
+  pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/refs/heads/r-daily.tar.gz") { };
+  rpkgs = builtins.attrValues {
+    inherit (pkgs.rPackages) devtools diffviewer fledge codetools jsonlite httr sys testthat knitr rmarkdown;
+  };
   tex = (pkgs.texlive.combine {
-  inherit (pkgs.texlive) scheme-small;
-});
- system_packages = builtins.attrValues {
-  inherit (pkgs) R glibcLocalesUtf8 pandoc nix glibcLocales;
-};
-  in
-  pkgs.mkShell {
-    LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then  "${pkgs.glibcLocales}/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";
+    inherit (pkgs.texlive) scheme-small;
+  });
+  system_packages = builtins.attrValues {
+    inherit (pkgs) R glibcLocalesUtf8 pandoc nix glibcLocales;
+  };
+in
+pkgs.mkShell {
+  LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocales}/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 = [  rpkgs tex system_packages  ];
-      
-  }
+  buildInputs = [ rpkgs tex system_packages ];
+
+}
philipp-baumann commented 4 months ago

addressed in #195