From 88888899e5327c11b28afaa3bc64171f9ac8203e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 30 Jun 2023 00:42:14 +0200 Subject: [PATCH] binary-cache: use lib.makeBinPath --- pkgs/build-support/binary-cache/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/binary-cache/default.nix b/pkgs/build-support/binary-cache/default.nix index 577328cad920..27f9ad962899 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