aboutsummaryrefslogtreecommitdiff
path: root/day2
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2022-10-13 16:45:01 +1100
committerJustin Bedo <cu@cua0.org>2022-10-13 17:48:22 +1100
commitf5618834f31b00d8c6465537d7ff7cf69860b2bc (patch)
tree07a98587f92ae7b7ae62d5364b94d55677ef27da /day2
parenta1806c62b34d3b220b74a7d3f1ed119df3898a68 (diff)
ex2: fix on darwinHEADmaster
Diffstat (limited to 'day2')
-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 ./. {};