diff options
author | Nick Cao <nickcao@nichi.co> | 2023-06-30 09:14:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 09:14:07 +0800 |
commit | d1ff959a9987b34b9e817f5fd3fba7fb3ebeaa7b (patch) | |
tree | ace6d47d1bcf15935650588e58e669738b837d39 /pkgs/build-support | |
parent | f14dbb5361f6f09273f79d34f223333483cd7405 (diff) | |
parent | 88888899e5327c11b28afaa3bc64171f9ac8203e (diff) |
Merge pull request #240613 from SuperSandro2000/binary-cache
binary-cache: use lib.makeBinPath
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/binary-cache/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/binary-cache/default.nix b/pkgs/build-support/binary-cache/default.nix index 577328cad920d..27f9ad9628998 100644 --- a/pkgs/build-support/binary-cache/default.nix +++ b/pkgs/build-support/binary-cache/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPackages }: +{ lib, stdenv, buildPackages }: # This function is for creating a flat-file binary cache, i.e. the kind created by # nix copy --to file:///some/path and usable as a substituter (with the file:// prefix). @@ -19,7 +19,7 @@ stdenv.mkDerivation { preferLocalBuild = true; - PATH = "${buildPackages.coreutils}/bin:${buildPackages.jq}/bin:${buildPackages.python3}/bin:${buildPackages.nix}/bin:${buildPackages.xz}/bin"; + PATH = lib.makeBinPath (with buildPackages; [ coreutils jq python3 nix xz ]); builder = builtins.toFile "builder" '' . .attrs.sh |