@@ -1982,31 +1982,21 @@ (define-public bees
#:phases
#~(modify-phases %standard-phases
(delete 'configure)
- (add-after 'unpack 'fixpath
+ (add-after 'install 'wrap
(lambda* (#:key inputs #:allow-other-keys)
- (substitute* "scripts/beesd.in"
- (((string-append "\\<(" (string-join (list "realpath"
- "uuidparse"
- "grep"
- "false"
- "sed"
- "true"
- "head"
- "mkdir"
- "mount"
- "touch"
- "du"
- "cut"
- "rm"
- "truncate"
- "chmod")
- "|") ")\\>") command)
- (search-input-file inputs (string-append "/bin/" command)))
-
- (("btrfs sub")
- (string-append (search-input-file inputs "/bin/btrfs")
- " sub"))))))))
- (inputs (list btrfs-progs cityhash util-linux))
+ (wrap-script (string-append #$output "/sbin/beesd")
+ `("PATH" suffix
+ ,(map (lambda (program)
+ (dirname (search-input-file
+ inputs (string-append "/bin/" program))))
+ '("btrfs" "grep" "sed"
+ ;; Provided by `util-linux`:
+ "uuidparse"
+ ;; Provided by `coreutils`:
+ ;; "chmod" "cut" "du" "false" "head" "mkdir"
+ ;; "mount" "realpath" "rm" "touch" "true"
+ "truncate")))))))))
+ (inputs (list btrfs-progs cityhash guile-3.0 util-linux))
(home-page "https://github.com/Zygo/bees")
(synopsis "Deduplication agent for btrfs file systems")
(description