mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-10 08:45:58 +00:00
Jakub Sokołowski
bb73bc76a0
Without this fix: https://github.com/NixOS/nixpkgs/commit/d0c06fa3 The `apksigner` utility is unavailable on macOS: ``` error: Package ‘apksigner-33.0.1’ in .../pkgs/development/tools/apksigner/default.nix:86 is not supported on ‘x86_64-darwin’, refusing to evaluate. ``` Signed-off-by: Jakub Sokołowski <jakub@status.im>
34 lines
1.1 KiB
Nix
34 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";
|
|
|
|
# We follow the master branch of official nixpkgs.
|
|
nixpkgsSrc = fetchFromGitHub {
|
|
name = "nixpkgs-source";
|
|
# FIXME: Fork used to get Cocoapods 1.12.0 and apksigner macOS build.
|
|
owner = "status-im";
|
|
repo = "nixpkgs";
|
|
rev = "d0c06fa3d3982a91aa01bd63ed84020cbde3d3ab";
|
|
sha256 = "sha256-8blvuUHnuf0hFr/PpBxVohJp5CaGXIXhgJlFN/cv7us=";
|
|
# 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 ];
|
|
}
|