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:
|
|
|
|
|
2020-04-23 18:19:12 +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; };
|
|
|
|
|
|
|
|
# Various utilities
|
|
|
|
utils = callPackage ./tools/utils.nix { };
|
2020-04-23 18:19:12 +00:00
|
|
|
lib = (super.lib or { }) // (import ./lib {
|
|
|
|
inherit (super) lib;
|
|
|
|
inherit (self) config;
|
|
|
|
});
|
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-06 13:33:54 +00:00
|
|
|
react-native = callPackage ./deps/react-native { };
|
2020-05-06 10:29:02 +00:00
|
|
|
};
|
|
|
|
|
2020-05-07 10:21:39 +00:00
|
|
|
# For patching Node.js modules with Gradle repo path
|
|
|
|
patchNodeModules = callPackage ./tools/patchNodeModules.nix { };
|
2020-04-26 12:40:06 +00:00
|
|
|
|
|
|
|
# Package version adjustments
|
|
|
|
xcodeWrapper = super.xcodeenv.composeXcodeWrapper { version = "11.4.1"; };
|
|
|
|
openjdk = super.pkgs.openjdk8_headless;
|
|
|
|
nodejs = super.pkgs.nodejs-12_x;
|
|
|
|
|
2020-05-07 10:21:39 +00:00
|
|
|
# Android environement
|
|
|
|
androidEnvCustom = callPackage ./pkgs/android-sdk { };
|
|
|
|
androidPkgs = self.androidEnvCustom.licensedPkgs;
|
|
|
|
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-04-26 12:40:06 +00:00
|
|
|
gomobile = callPackage ./pkgs/gomobile { };
|
2020-04-23 18:19:12 +00:00
|
|
|
qt5custom = callPackage ./pkgs/qt5custom { };
|
|
|
|
qtkeychain-src = callPackage ./pkgs/qtkeychain-src { };
|
|
|
|
appimagekit = callPackage ./pkgs/appimagekit { };
|
|
|
|
linuxdeployqt = callPackage ./pkgs/linuxdeployqt { inherit (self) appimagekit; };
|
2020-05-07 10:21:39 +00:00
|
|
|
patchMavenSources = callPackage ./pkgs/patch-maven-srcs { };
|
2020-04-26 12:40:06 +00:00
|
|
|
}
|