From 6e5e340400861a6aed0a4c58548fbf97b816996a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 24 Nov 2020 02:53:33 +0000 Subject: [PATCH] 3p/nixpkgs: add packageOverrides for factorio creds --- third_party/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/third_party/default.nix b/third_party/default.nix index 8173b976d5..e172ab0f4c 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -2,13 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 -{ ... }@ch: +{ depot, ... }@ch: let nixpkgsConfig = { allowUnfree = true; permittedInsecurePackages = [ "p7zip-16.02" ]; + packageOverrides = pkgs: { + factorio = pkgs.factorio.override depot.ops.secrets.factorio; + factorio-experimental = pkgs.factorio-experimental.override depot.ops.secrets.factorio; + }; }; nixpkgs = import ./nixpkgs { config = nixpkgsConfig;