2020-04-26 12:40:06 +00:00
|
|
|
# Override some packages and utilities in 'pkgs'
|
|
|
|
# and make them available globally via callPackage.
|
|
|
|
#
|
|
|
|
# For more details see:
|
|
|
|
# - https://nixos.wiki/wiki/Overlays
|
|
|
|
# - https://nixos.org/nixos/nix-pills/callpackage-design-pattern.html
|
|
|
|
|
|
|
|
self: super:
|
|
|
|
|
2021-09-11 07:39:35 +00:00
|
|
|
let
|
|
|
|
inherit (super) stdenv stdenvNoCC callPackage;
|
2020-04-26 12:40:06 +00:00
|
|
|
in {
|
|
|
|
# Fix for MacOS
|
|
|
|
mkShell = super.mkShell.override { stdenv = stdenvNoCC; };
|
|
|
|
|
2020-04-23 18:19:12 +00:00
|
|
|
lib = (super.lib or { }) // (import ./lib {
|
|
|
|
inherit (super) lib;
|
|
|
|
});
|
2020-04-26 12:40:06 +00:00
|
|
|
|
2020-05-06 10:29:02 +00:00
|
|
|
# Project dependencies
|
|
|
|
deps = {
|
|
|
|
clojure = callPackage ./deps/clojure { };
|
2020-05-07 10:21:39 +00:00
|
|
|
gradle = callPackage ./deps/gradle { };
|
2020-05-06 10:39:49 +00:00
|
|
|
nodejs = callPackage ./deps/nodejs { };
|
2020-05-18 10:15:49 +00:00
|
|
|
nodejs-patched = callPackage ./deps/nodejs-patched { };
|
2020-05-06 13:33:54 +00:00
|
|
|
react-native = callPackage ./deps/react-native { };
|
2020-05-06 10:29:02 +00:00
|
|
|
};
|
|
|
|
|
2023-04-20 10:36:48 +00:00
|
|
|
# Fix for missing libarclite_macosx.a in Xcode 14.3.
|
|
|
|
# https://github.com/ios-control/ios-deploy/issues/580
|
|
|
|
ios-deploy = super.darwin.ios-deploy.overrideAttrs (old: rec {
|
|
|
|
version = "1.12.2";
|
|
|
|
src = super.fetchFromGitHub {
|
|
|
|
owner = "ios-control";
|
|
|
|
repo = "ios-deploy";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-TVGC+f+1ow3b93CK3PhIL70le5SZxxb2ug5OkIg8XCA";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2023-10-05 18:50:57 +00:00
|
|
|
# Clojure's linter receives frequent upgrades, and we want to take advantage
|
|
|
|
# of the latest available rules.
|
|
|
|
clj-kondo = super.clj-kondo.override rec {
|
|
|
|
buildGraalvmNativeImage = args: super.buildGraalvmNativeImage (args // rec {
|
|
|
|
inherit (args) pname;
|
|
|
|
version = "2023.09.07";
|
|
|
|
src = super.fetchurl {
|
|
|
|
url = "https://github.com/clj-kondo/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
|
|
|
|
sha256 = "sha256-F7ePdITYKkGB6nsR3EFJ7zLDCUoT0g3i+AAjXzBd624=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2023-06-26 07:21:39 +00:00
|
|
|
# Checks fail on darwin.
|
|
|
|
git-lfs = super.git-lfs.overrideAttrs (old: {
|
|
|
|
doCheck = false;
|
|
|
|
});
|
|
|
|
|
2023-06-27 09:04:46 +00:00
|
|
|
# Downgrade watchman in attempt to fix "too many files open issue"
|
|
|
|
watchman = callPackage ./pkgs/watchman {
|
|
|
|
inherit (super.darwin.apple_sdk.frameworks) CoreServices;
|
|
|
|
autoconf = super.buildPackages.autoconf269;
|
|
|
|
};
|
|
|
|
|
2020-04-26 12:40:06 +00:00
|
|
|
# Package version adjustments
|
2023-12-11 15:52:23 +00:00
|
|
|
gradle = super.gradle_8;
|
2023-01-31 16:18:30 +00:00
|
|
|
nodejs = super.nodejs-18_x;
|
2023-10-17 08:37:35 +00:00
|
|
|
ruby = super.ruby_3_1;
|
2023-01-31 16:18:30 +00:00
|
|
|
yarn = super.yarn.override { nodejs = super.nodejs-18_x; };
|
2023-06-14 01:47:41 +00:00
|
|
|
openjdk = super.openjdk11_headless;
|
2023-01-31 16:54:29 +00:00
|
|
|
xcodeWrapper = super.xcodeenv.composeXcodeWrapper {
|
2023-04-05 10:38:41 +00:00
|
|
|
version = "14.0";
|
2020-07-30 15:05:47 +00:00
|
|
|
allowHigher = true;
|
|
|
|
};
|
2023-04-11 08:11:06 +00:00
|
|
|
go = super.go_1_19;
|
2023-12-07 10:06:08 +00:00
|
|
|
clang = super.clang_15;
|
2023-04-11 08:11:06 +00:00
|
|
|
buildGoPackage = super.buildGo119Package;
|
|
|
|
buildGoModule = super.buildGo119Module;
|
2022-09-12 09:52:41 +00:00
|
|
|
gomobile = (super.gomobile.overrideAttrs (old: {
|
2022-08-31 23:30:35 +00:00
|
|
|
patches = self.fetchurl { # https://github.com/golang/mobile/pull/84
|
2022-09-12 09:52:41 +00:00
|
|
|
url = "https://github.com/golang/mobile/commit/f20e966e05b8f7e06bed500fa0da81cf6ebca307.patch";
|
|
|
|
sha256 = "sha256-TZ/Yhe8gMRQUZFAs9G5/cf2b9QGtTHRSObBFD5Pbh7Y=";
|
|
|
|
};
|
|
|
|
})).override {
|
2021-11-23 12:30:48 +00:00
|
|
|
# FIXME: No Android SDK packages for aarch64-darwin.
|
|
|
|
withAndroidPkgs = stdenv.system != "aarch64-darwin";
|
2021-09-11 07:39:35 +00:00
|
|
|
androidPkgs = self.androidEnvCustom.compose;
|
|
|
|
};
|
2020-04-26 12:40:06 +00:00
|
|
|
|
2020-05-07 10:21:39 +00:00
|
|
|
# Android environement
|
|
|
|
androidEnvCustom = callPackage ./pkgs/android-sdk { };
|
2020-08-27 12:20:39 +00:00
|
|
|
androidPkgs = self.androidEnvCustom.pkgs;
|
2020-05-07 10:21:39 +00:00
|
|
|
androidShell = self.androidEnvCustom.shell;
|
|
|
|
|
2020-04-26 12:40:06 +00:00
|
|
|
# Custom packages
|
2020-05-07 10:21:39 +00:00
|
|
|
aapt2 = callPackage ./pkgs/aapt2 { };
|
2020-05-07 10:21:39 +00:00
|
|
|
patchMavenSources = callPackage ./pkgs/patch-maven-srcs { };
|
2020-05-22 18:24:47 +00:00
|
|
|
goMavenResolver = callPackage ./pkgs/go-maven-resolver { };
|
2023-12-22 14:15:59 +00:00
|
|
|
xcbeautify = callPackage ./pkgs/xcbeautify { };
|
2020-04-26 12:40:06 +00:00
|
|
|
}
|