Skip to content

Repitools dependency fail #588

@kunfundere

Description

@kunfundere
# This file was generated by the {rix} R package v0.17.2 on 2026-02-13
# with following call:
# >rix(r_ver = "4.5.1",
#  > r_pkgs = c("Repitools",
#  > "gsmoothr@0.1.7"),
#  > system_pkgs = NULL,
#  > git_pkgs = NULL,
#  > ide = "none",
#  > project_path = "/path/test",
#  > overwrite = TRUE)
# It uses the `rstats-on-nix` fork of `nixpkgs` which provides improved
# compatibility with older R versions and R packages for Linux/WSL and
# Apple Silicon computers.
# Report any issues to https://github.com/ropensci/rix
let
 pkgs = import (fetchTarball "https://github.com/rstats-on-nix/nixpkgs/archive/2025-10-27.tar.gz") {};
 
  rpkgs = builtins.attrValues {
    inherit (pkgs.rPackages) 
      Repitools;
  };
  
    gsmoothr = (pkgs.rPackages.buildRPackage {
      name = "gsmoothr";
      src = pkgs.fetchzip {
       url = "https://cran.r-project.org/src/contrib/Archive/gsmoothr/gsmoothr_0.1.7.tar.gz";
       sha256 = "sha256-yV5Fpy4voKlR2Rn2qHbguOjA6WrNPwHqGZN5QMzP4t4=";
      };
      propagatedBuildInputs = builtins.attrValues {
        inherit (pkgs.rPackages) ;
      };
    });
     
  system_packages = builtins.attrValues {
    inherit (pkgs) 
      glibcLocales
      nix
      R;
  };
  
  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 = [ gsmoothr rpkgs system_packages ];
    
  }; 
in
  {
    inherit pkgs shell;
  }

error: Cannot build '/nix/store/2dxn2al6y4qv1gx2qr0v04yqhli4fbyk-r-Repitools-1.54.0.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/waccsm8vkxw16jsiyzcmf9azai13lx12-r-Repitools-1.54.0
       Last 14 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/l09v3592bvcbxm3x6rj7mvap01gjixkm-Repitools_1.54.0.tar.gz
       > source root is Repitools
       > setting SOURCE_DATE_EPOCH to timestamp 1744761722 of file "Repitools/inst/doc/Repitools_vignette.pdf"
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Running phase: checkPhase
       > Running phase: installPhase
       > ERROR: dependency 'gsmoothr' is not available for package 'Repitools'
       > Perhaps try a variation of:
       > install.packages('gsmoothr')
       > * removing '/nix/store/waccsm8vkxw16jsiyzcmf9azai13lx12-r-Repitools-1.54.0/library/Repitools'
       For full logs, run:
         nix log /nix/store/2dxn2al6y4qv1gx2qr0v04yqhli4fbyk-r-Repitools-1.54.0.drv
error: Cannot build '/nix/store/r2pbm5iwca25l2q1lfbhavank17wgm24-nix-shell.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/lwrm872h6iqjycdgr5sbh8761s39yqzp-nix-shell
error: Build failed due to failed dependency

This could be my inexperience with rix, but I cannot get Repitools to detect gsmoothr.

Not installing Repitools would let gmoothr work. (Can go into R and load library(gmoothr))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions