From 850af444356b0865337f204c3802b3ac57491695 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 20 Aug 2023 11:51:21 +0200 Subject: [PATCH] applyPatches: fix adding meta information --- pkgs/build-support/trivial-builders/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 0b6bc4b61296..3d2a5512c58e 100644 --- a/pkgs/build-support/trivial-builders/default.nix +++ b/pkgs/build-support/trivial-builders/default.nix @@ -914,7 +914,7 @@ rec { installPhase = "cp -R ./ $out"; } # Carry `meta` information from the underlying `src` if present. - // (optionalAttrs (builtins.hasAttr "meta" src) src.meta) + // (optionalAttrs (src?meta) { inherit (src) meta; }) // (removeAttrs args [ "src" "name" "patches" "postPatch" ]); /* An immutable file in the store with a length of 0 bytes. */