2019-11-29 10:20:08 +00:00
|
|
|
# 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
|
2020-04-26 12:40:06 +00:00
|
|
|
inherit (import <nixpkgs> { }) fetchFromGitHub;
|
2020-04-15 11:12:56 +00:00
|
|
|
|
|
|
|
# For testing local version of nixpkgs
|
|
|
|
#nixpkgsSrc = (import <nixpkgs> { }).lib.cleanSource "/home/jakubgs/work/nixpkgs";
|
|
|
|
|
2020-08-27 12:20:39 +00:00
|
|
|
# We follow the master branch of official nixpkgs.
|
2020-04-15 11:12:56 +00:00
|
|
|
nixpkgsSrc = fetchFromGitHub {
|
2019-11-29 10:20:08 +00:00
|
|
|
name = "nixpkgs-source";
|
2023-03-13 09:14:17 +00:00
|
|
|
owner = "status-im"; # FIXME: Fork used to get Cocoapods 1.12.0.
|
2019-11-29 10:20:08 +00:00
|
|
|
repo = "nixpkgs";
|
2023-03-13 09:14:17 +00:00
|
|
|
rev = "b9b2ed705edc00003d47625950602136be3e1ed5";
|
|
|
|
sha256 = "sha256-F0qOawdKx7kgiGqwVikYIawL2taJ1XfcgHy0Wn0mho8=";
|
2019-11-29 10:20:08 +00:00
|
|
|
# To get the compressed Nix sha256, use:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz
|
|
|
|
};
|
2020-04-15 11:12:56 +00:00
|
|
|
|
2020-06-03 19:47:01 +00:00
|
|
|
# Status specific configuration defaults
|
|
|
|
defaultConfig = import ./config.nix;
|
|
|
|
|
2020-04-26 12:40:06 +00:00
|
|
|
# Override some packages and utilities
|
|
|
|
pkgsOverlay = import ./overlay.nix;
|
2019-11-29 10:20:08 +00:00
|
|
|
in
|
2020-04-26 12:40:06 +00:00
|
|
|
# import nixpkgs with a config override
|
|
|
|
(import nixpkgsSrc) {
|
|
|
|
config = defaultConfig // config;
|
|
|
|
overlays = [ pkgsOverlay ];
|
|
|
|
}
|