aboutsummaryrefslogtreecommitdiff
path: root/day2/ex3-R/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'day2/ex3-R/flake.nix')
-rwxr-xr-xday2/ex3-R/flake.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/day2/ex3-R/flake.nix b/day2/ex3-R/flake.nix
index f7b7c62..cd55877 100755
--- a/day2/ex3-R/flake.nix
+++ b/day2/ex3-R/flake.nix
@@ -12,7 +12,15 @@
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
- pkgs = import nixpkgs {inherit system;};
+ pkgs = import nixpkgs {
+ inherit system;
+ config.rPackageOverrides = self:
+ with self; {
+ edgeR = (import nixpkgs {inherit system;}).rPackages.edgeR.overrideAttrs (attrs: {
+ buildInputs = attrs.buildInputs ++ lib.optional stdenv.isDarwin libiconv;
+ });
+ };
+ };
bionix' = import bionix {nixpkgs = pkgs;};
in {
defaultPackage = bionix'.callBionix ./. {};