isc-cron: fix substituteAll usage

This commit is contained in:
K900 2024-10-20 18:45:02 +03:00
parent ed8c856ebf
commit 8a9b8cd39e
2 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ diff -Naur cron-old/pathnames.h cron-new/pathnames.h
+#define _PATH_SENDMAIL "@sendmailPath@"
+
+#undef _PATH_VI
+#define _PATH_VI "@VIPATH@"
+#define _PATH_VI "@viPath@"
+
+#undef _PATH_DEFPATH
+#define _PATH_DEFPATH "@DEFPATH@"
+#define _PATH_DEFPATH "@defPath@"
+
+/* Nixpkgs-specific patch end */
+

View File

@ -20,8 +20,8 @@ stdenv.mkDerivation (finalAttrs: {
(substituteAll {
src = ./0000-nixpkgs-specific.diff;
inherit sendmailPath;
VIPATH = lib.getExe' vim "vim";
DEFPATH = lib.concatStringsSep ":" [
viPath = lib.getExe' vim "vim";
defPath = lib.concatStringsSep ":" [
"/run/wrappers/bin"
"/nix/var/nix/profiles/default/bin"
"/run/current-system/sw/bin"