mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-10 16:56:31 +00:00
Jakub Sokołowski
f2c96dcd3b
Changes: * Create `nix/config.nix` with `config` defaults * Add `nix/tools/gradlePropParser.nix` for reading `gradle.properties` * Add `nix/mobile/android/keystore.nix` for generating a keystore * Load keystore generation in `nix/mobile/android/default.nix` * Use generated keystore if it's not provided via `config` * Add `-deststoretype pkcs12` in `scripts/generate-keystore.sh` * Add `nix/lib/assertEnvVarSet.nix` for checking if env var is set Signed-off-by: Jakub Sokołowski <jakub@status.im>
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
# This file controls the pinned version of nixpkgs we use for our Nix environment
|
|
# as well as which versions of package we use, including their overrides.
|
|
{ config ? { } }:
|
|
|
|
let
|
|
inherit (import <nixpkgs> { }) fetchFromGitHub;
|
|
|
|
# For testing local version of nixpkgs
|
|
#nixpkgsSrc = (import <nixpkgs> { }).lib.cleanSource "/home/jakubgs/work/nixpkgs";
|
|
|
|
# Our own nixpkgs fork with custom fixes
|
|
nixpkgsSrc = fetchFromGitHub {
|
|
name = "nixpkgs-source";
|
|
owner = "status-im";
|
|
repo = "nixpkgs";
|
|
rev = "6dacca5eb43a8bfb02fb09331df607d4465a28e9";
|
|
sha256 = "0whwzll9lvrq4gg5j838skg7fqpvb55w4z7y44pzib32k613y2qn";
|
|
# To get the compressed Nix sha256, use:
|
|
# nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz
|
|
};
|
|
|
|
# Status specific configuration defaults
|
|
defaultConfig = import ./config.nix;
|
|
|
|
# Override some packages and utilities
|
|
pkgsOverlay = import ./overlay.nix;
|
|
in
|
|
# import nixpkgs with a config override
|
|
(import nixpkgsSrc) {
|
|
config = defaultConfig // config;
|
|
overlays = [ pkgsOverlay ];
|
|
}
|