2019-06-19 09:54:14 +00:00
|
|
|
# This file controls the pinned version of nixpkgs we use for our Nix environment
|
2019-11-15 15:26:25 +00:00
|
|
|
let
|
|
|
|
inherit (import <nixpkgs> { }) fetchFromGitHub;
|
|
|
|
defaultConfig = { android_sdk.accept_license = true; };
|
|
|
|
nixpkgsSrc = {
|
2019-09-27 14:21:29 +00:00
|
|
|
name = "nixpkgs-source";
|
2019-06-19 09:54:14 +00:00
|
|
|
owner = "status-im";
|
|
|
|
repo = "nixpkgs";
|
2019-09-27 14:21:29 +00:00
|
|
|
rev = "f54e1c6441868450e947f6171b129dfb90a91653";
|
|
|
|
sha256 = "13cf3pi277ifg57l11kmjk08vrpv6km2jfxq7sp63zxw5bgkiqpd";
|
|
|
|
# To get the compressed Nix sha256, use:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz
|
|
|
|
# The last line will be the hash.
|
2019-11-15 15:26:25 +00:00
|
|
|
};
|
2019-06-19 09:54:14 +00:00
|
|
|
|
2019-11-15 15:26:25 +00:00
|
|
|
in {
|
|
|
|
config ? { },
|
|
|
|
config' ? defaultConfig // config,
|
|
|
|
pkgs ? (import (fetchFromGitHub nixpkgsSrc)) { config = config'; }
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
inherit pkgs;
|
|
|
|
config = config';
|
|
|
|
}
|