mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 21:08:21 +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
|
let
|
||||||
|
|
||||||
inherit (pkgs) stdenv;
|
inherit (pkgs) stdenv;
|
||||||
|
|
||||||
|
extraPath = lib.makeBinPath [ config.nix.package pkgs.coreutils pkgs.jq ];
|
||||||
|
|
||||||
writeProgram = name: env: src:
|
writeProgram = name: env: src:
|
||||||
pkgs.substituteAll ({
|
pkgs.substituteAll ({
|
||||||
inherit name src;
|
inherit name src;
|
||||||
|
@ -22,10 +25,9 @@ let
|
||||||
{
|
{
|
||||||
inherit (config.system) profile;
|
inherit (config.system) profile;
|
||||||
inherit (stdenv) shell;
|
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;
|
../../pkgs/nix-tools/darwin-rebuild.sh;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue