phpExtensions.blackfire: fix update script

Issue introduced in https://github.com/NixOS/nixpkgs/pull/241072
This commit is contained in:
Pol Dellaiera 2023-07-04 22:11:25 +02:00
parent 3a9a4076da
commit c970c35698
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -100,7 +100,7 @@ stdenv.mkDerivation (finalAttrs: {
fi
for source in ${lib.concatStringsSep " " (builtins.attrNames finalAttrs.passthru.updateables)}; do
update-source-version "$UPDATE_NIX_ATTR_PATH.updateables.$source" "0" "${lib.fakeSha256}"
update-source-version "$UPDATE_NIX_ATTR_PATH.updateables.$source" "0" "sha256-${lib.fakeSha256}"
update-source-version "$UPDATE_NIX_ATTR_PATH.updateables.$source" "$NEW_VERSION"
done
'';
@ -129,7 +129,7 @@ stdenv.mkDerivation (finalAttrs: {
createUpdateable = path: _value:
lib.nameValuePair
(createName path)
(finalAttrs.self.overrideAttrs (attrs: {
(finalAttrs.finalPackage.overrideAttrs (attrs: {
src = makeSource (createSourceParams path);
}));