1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00

emacsPackages.units-mode: replace program (#341097)

This commit is contained in:
Lin Jian 2024-09-11 21:37:12 +08:00 committed by GitHub
commit 72239d5c1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -551,6 +551,13 @@ let
'';
});
units-mode = super.units-mode.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace units-mode.el \
--replace-fail 'units-binary-path "units"' 'units-binary-path "${lib.getExe pkgs.units}"'
'';
});
vdiff-magit = super.vdiff-magit.overrideAttrs (attrs: {
nativeBuildInputs =
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];