From f5618834f31b00d8c6465537d7ff7cf69860b2bc Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 13 Oct 2022 16:45:01 +1100 Subject: ex2: fix on darwin --- day2/ex3-R/flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'day2/ex3-R/flake.nix') 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 ./. {}; -- cgit v1.2.3