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-11-20 12:42:41 +00:00
|
|
|
rev = "d9b2c6b8add87098adb8ee34042e39d15f3658c4";
|
|
|
|
sha256 = "19wnp97nlkyd825pjd9vm9rngy3gcil9bwqncwscivsmaz5c7l37";
|
2019-09-27 14:21:29 +00:00
|
|
|
# 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';
|
|
|
|
}
|