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:
parent
c6f44ea7ff
commit
a97f690dcc
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue