Merge pull request #240613 from SuperSandro2000/binary-cache

binary-cache: use lib.makeBinPath
This commit is contained in:
Nick Cao 2023-06-30 09:14:07 +08:00 committed by GitHub
commit d1ff959a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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