Open philipp-baumann opened 1 month ago
Right, but I wonder if this will not be removed anyways with what we’re planning to do with renv2nix()
. If we go that route, then something like rlang@1.1.3
would be pulled from its specific nixpkgs
revision instead like so:
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/019f5c29c5afeb215587e17bf1ec31dc1913595b.tar.gz") {};
old_dplyr = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/a4684b5462b6c66dd7ad2a7dfb2e5c1fca5582e4.tar.gz") {};
rpkgs = builtins.attrValues {
inherit (pkgs.rPackages)
ggplot2
languageserver;
};
system_packages = builtins.attrValues {
inherit (pkgs)
glibcLocales
nix
R;
};
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 system_packages old_dplyr.rPackages.dplyr ];
}
so maybe we can just leave this for now, because we would end up removing it once we start using dedicated nixpkgs
revisions for individual packages.
currently produces this Nix expression
It should be tagged under
cran_build_pkgs
. Its the same hashing procedure, but semantically its not a git archive.