Brian Cully via Guix-patches via schreef op wo 11-05-2022 om 09:37 [- 0400]: > - (add-after 'unpack 'patch-source > - (lambda* (#:key inputs outputs #:allow-other-keys) > - (let ((out (assoc-ref outputs "out")) > - (src (assoc-ref outputs "src")) > - (util-linux (assoc-ref inputs "util-linux")) > - (nfs-utils (assoc-ref inputs "nfs-utils")) > - (kmod (assoc-ref inputs "kmod-runtime"))) [...] > + (add-after 'unpack 'patch-source > + (lambda _ [...] > + (substitute* "lib/libzfs/os/linux/libzfs_util_os.c" > + ;; Use path to /gnu/store/*-kmod in actual path that is exec'ed. > + (("\"/sbin/modprobe\"") > + (string-append "\"" #$kmod "/bin/modprobe" "\"")) This breaks package transformations -- now the 'kmod' from (gnu packages linux) is hardcoded, it cannot be replaced by something else with --with-input or (package (inherit ...) (inputs (list custom-kmod ...)) or the like. (Currently no mechanism exists to rewrite G-exps.) Instead, do (lambda* (#:key inputs #:allow-other-keys) [...] (string-append "\"" (search-input-file inputs "bin/modprobe)) [...]) Greetings, Maxime.