!fXpAvneDgyJuYMZSwO:nixos.org

Nix Data Science

282 Members
62 Servers

Load older messages


SenderMessageTime
17 May 2025
@brodriguesco:matrix.orgBruno Rodriguesso for example08:10:02
@brodriguesco:matrix.orgBruno Rodrigues
let
  pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/2025-03-10.tar.gz") {};
 
  rpkgs = builtins.attrValues {
    inherit (pkgs.rPackages) 
      dplyr
      janitor
      reticulate;
  };
  
  tex = (pkgs.texlive.combine {
    inherit (pkgs.texlive) 
      scheme-small
      amsmath;
  });
  
  jlconf = pkgs.julia_110.withPackages [ 
      "RDatasets"
      "TidierData"
  ];
  
  system_packages = builtins.attrValues {
    inherit (pkgs) 
      R
      glibcLocales
      nix;
  };
  
  shell = 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 jlconf system_packages ];
    
  }; 
in
  {
    inherit pkgs shell;
  }

08:10:12
@brodriguesco:matrix.orgBruno Rodriguesnixpkgs are pinned, so R and Python packages are pinned08:10:55
@brodriguesco:matrix.orgBruno Rodriguesbut with julia.withPackages, the julia packages come from outside nixpkgs08:11:26
@brodriguesco:matrix.orgBruno Rodriguesso building this expression in, say, 6 months, could result in another shell, if in the meantime the julia packages get updated, no?08:12:01
@ss:someonex.netSomeone Sjulia.withPackages pins a revision of whatsthename registry, which it fetches and ingests back into the nix interpreter using IFD16:34:32
@ss:someonex.netSomeone SSo it's hermetic-ish in the usual sense16:36:09
@ss:someonex.netSomeone S @brodriguesco:matrix.org: 16:36:53
@brodriguesco:matrix.orgBruno Rodriguesyes, now I see that it imports ./registry.nix which pins the julia packages defined on another repo17:53:42
@brodriguesco:matrix.orgBruno Rodriguespretty cool, but if I understand this correctly, the packages were updated for the last time in july 2024: https://github.com/NixOS/nixpkgs/commit/eac352421d185289c24005e21a7d9ad360a55e4f17:54:29
18 May 2025
@s-rein:basketweavers.nets-rein joined the room.01:39:31
@ss:someonex.netSomeone S Yeah... if you're planning to pick up on julia, you might also want to look into simplifying the withPackages implementation, because right now it generates .nix code for IFD instead passing JSON through the interface: https://github.com/NixOS/nixpkgs/blob/eac352421d185289c24005e21a7d9ad360a55e4f/pkgs/development/julia-modules/python/sources_nix.py#L58-L66 19:57:56
@ss:someonex.netSomeone SThe story for extending the registry or for mixing dynamic and static graphs is also unexplored19:58:54
19 May 2025
@brodriguesco:matrix.orgBruno Rodrigues honestly I don't think I have the skills to do so 😆 but I'll start studying it in more detail. Julia always interested me but I never had any reason to use it. but making it available through my R package, rix, which simplifies the creation of reproducible shells for R users might be a good motivator to start digging 07:45:12
24 May 2025
@fromtheeast:matrix.orgfromtheeast710 joined the room.05:09:20
26 May 2025
@entheogenesis:matrix.org@entheogenesis:matrix.org left the room.03:57:47
27 May 2025
@deeok:matrix.org@deeok:matrix.org joined the room.16:31:24
29 May 2025
@markus.lohmayer:matrix.org@markus.lohmayer:matrix.org left the room.10:31:07
30 May 2025
@bytebandit:tac.lolDerivationDingus set a profile picture.19:54:41
1 Jun 2025
@seanthw:matrix.orgSean Thawe joined the room.23:37:46
2 Jun 2025
@s8766054:tu-dresden.deSimon.Sieben@mailbox.tu-dresden.de joined the room.08:40:39
4 Jun 2025
@hedgemage:unredacted.orgHedgeMage joined the room.19:22:39
7 Jun 2025
@deeok:matrix.org@deeok:matrix.org changed their display name from deeok to matrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms).23:01:40
@deeok:matrix.org@deeok:matrix.org left the room.23:41:23
9 Jun 2025
@sigmasquadron:matrix.orgSigmaSquadron joined the room.13:04:49
11 Jun 2025
@astodialo:matrix.orgelamon joined the room.15:13:14
13 Jun 2025
@jgill:matrix.orgJeremy joined the room.04:00:21
21 Jun 2025
@axel_w:matrix.orgaxel_w set a profile picture.15:49:09
@axel_w:matrix.orgaxel_w changed their profile picture.15:50:18
@axel_w:matrix.orgaxel_w changed their profile picture.15:51:28

Show newer messages


Back to Room ListRoom Version: 6