1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

darwin-rebuild: add jq to path for flakes

This commit is contained in:
Daiderd Jordan 2020-11-15 15:42:39 +01:00
parent c6f44ea7ff
commit a97f690dcc
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,9 +1,12 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
with lib;
let
inherit (pkgs) stdenv;
extraPath = lib.makeBinPath [ config.nix.package pkgs.coreutils pkgs.jq ];
writeProgram = name: env: src:
pkgs.substituteAll ({
inherit name src;
@ -22,10 +25,9 @@ let
{
inherit (config.system) profile;
inherit (stdenv) shell;
path = "${pkgs.coreutils}/bin:${config.nix.package}/bin:${config.environment.systemPath}";
path = "${extraPath}:${config.environment.systemPath}";
}
../../pkgs/nix-tools/darwin-rebuild.sh;
in
{