github.com/status-im/status-go@v1.1.0/nix/pkgs.nix (about)

     1  # This file controls the pinned version of nixpkgs we use for our Nix environment
     2  # as well as which versions of package we use, including their overrides.
     3  { config ? { } }:
     4  
     5  let
     6    # For testing local version of nixpkgs
     7    #nixpkgsSrc = (import <nixpkgs> { }).lib.cleanSource "/home/jakubgs/work/nixpkgs";
     8  
     9    # We follow the master branch of official nixpkgs.
    10    nixpkgsSrc = builtins.fetchTarball {
    11      url = "https://github.com/NixOS/nixpkgs/archive/224fd9a362487ab2894dac0df161c84ab1d8880b.tar.gz";
    12      sha256 = "sha256:1syvl39pi1h8lf5gkd9h7ksn5hp34cj7pa3abr59217kv0bdklhy";
    13    };
    14  
    15    # Status specific configuration defaults
    16    defaultConfig = {
    17        allowUnfree = true;
    18      android_sdk.accept_license = true;
    19    };
    20    # Override some packages and utilities
    21    pkgsOverlay = import ./overlay.nix;
    22  
    23  in
    24    # import nixpkgs with a config override
    25    (import nixpkgsSrc) {
    26      config = defaultConfig // config;
    27      overlays =  [pkgsOverlay];
    28    }