1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 07:31:00 +01:00

maint: Fix lowdown override compatibility with newer nixpkgs

Use `or ""` fallback for postInstall attribute which may not exist in
newer nixpkgs versions of lowdown.
This commit is contained in:
Robert Hensing 2025-12-02 02:38:08 +01:00
parent 2636f50dd4
commit 0aef1ddb9e

View file

@ -39,7 +39,7 @@ scope: {
nativeBuildInputs = prevAttrs.nativeBuildInputs ++ [ pkgs.buildPackages.bmake ];
postInstall =
lib.replaceStrings [ "lowdown.so.1" "lowdown.1.dylib" ] [ "lowdown.so.2" "lowdown.2.dylib" ]
prevAttrs.postInstall;
(prevAttrs.postInstall or "");
});
# TODO: Remove this when https://github.com/NixOS/nixpkgs/pull/442682 is included in a stable release