diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-08-20 11:51:21 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-08-20 11:51:21 +0200 |
commit | 850af444356b0865337f204c3802b3ac57491695 (patch) | |
tree | e5b920d524ceebc1cdc0e32fdf22b0159b596018 /pkgs/build-support | |
parent | c74490e000168b59f73062a059608dce5a0e1859 (diff) |
applyPatches: fix adding meta information
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/trivial-builders/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 0b6bc4b612965..3d2a5512c58e9 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. */ |