From 98369996524102e9d7879455441ee794bf0c93ce Mon Sep 17 00:00:00 2001 From: vuko Date: Tue, 20 Dec 2022 00:48:28 +0100 Subject: [PATCH] allow passing system to default.nix This is needed to use hscloud in builds invoked from flakes. Change-Id: I7551b97dfeedb9399866cd2c16cc573ee60359cc Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1452 Reviewed-by: q3k --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 126e34c3..07d12593 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,4 @@ -{ ... }@args: +{ system ? builtins.currentSystem, ... }@args: with builtins; @@ -22,6 +22,7 @@ let config.permittedInsecurePackages = [ "qtwebkit-5.212.0-alpha4" ]; + inherit system; }; resForPkgs = pkgs: fix (self: (readTree rec {