-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referencing outputs from another devenv #1438
Labels
enhancement
New feature or request
Comments
I'm trying to do this.
{ pkgs, ... }:
let
sysPkgs = with pkgs; [
git
radianWrapper
];
rPkgs = with pkgs.rPackages; [
checkmate
data_table
devtools
dplyr
glue
purrr
shiny
shinyjs
stringr
testthat
tibble
tidyselect
];
rScript = x: ''
Rscript -e "${x}"
'';
in
{
packages = sysPkgs ++ rPkgs;
enterShell = rScript "devtools::load_all('package')";
enterTest = rScript "devtools::test('package')";
languages.r.enable = true;
outputs.myPackage = pkgs.rPackages.buildRPackage {
name = "myPackage";
src = ./.
buildInputs = [ pkgs.R ] ++ rPkgs;
};
}
{ pkgs, myPackage, ... }:
let
sysPkgs = with pkgs; [
git
radianWrapper
];
rPkgs = with pkgs.rPackages; [
checkmate
devtools
purrr
rex
shinyWidgets
shinycssloaders
shinydashboard
shinyjs
waiter
];
rScript = x: ''
Rscript -e "${x}"
'';
in
{
packages = sysPkgs ++ rPkgs ++ [ myPackage ];
enterShell = rScript "devtools::load_all('package')";
enterTest = rScript "devtools::test('package')";
languages.r.enable = true;
}
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
myPackage:
url: git+https://<repo-url>.git?ref=devenv&rev=4axs115b316b78cc4a9ac3b5bfaaccebfd71a861 and I'm getting the follwing error:
|
Ok, I had to change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is currently not trivial to do and requires documentation. Leave a thumps up as usual for prioritization.
The text was updated successfully, but these errors were encountered: