binary-cache: use lib.makeBinPath

This commit is contained in:
Sandro Jäckel 2023-06-30 00:42:14 +02:00
parent 7f8a16b9f5
commit 88888899e5
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

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