@@ -1,4 +1,4 @@
1−{ pkgs, idris, overrides ? (self: super: {}) }: let
1+{ pkgs, idris-no-deps, overrides ? (self: super: {}) }: let
22 inherit (pkgs.lib) callPackageWith fix' extends;
33
44 /* Taken from haskell-modules/default.nix, should probably abstract this away */
@@ -33,7 +33,12 @@
3333
3434 value = callPackage (./. + "/${name}.nix") {};
3535 }) files)) // {
36− inherit idris callPackage;
36+ inherit idris-no-deps callPackage;
37+ # See #10450 about why we have to wrap the executable
38+ idris =
39+ (pkgs.callPackage ./idris-wrapper.nix {})
40+ idris-no-deps
41+ { path = [ pkgs.gcc ]; lib = [pkgs.gmp]; };
3742
3843 # A list of all of the libraries that come with idris
3944 builtins = pkgs.lib.mapAttrsToList (name: value: value) builtins_;