Advertisement
Guest User

Untitled

a guest
May 4th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 1.47 KB | Source Code | 0 0
  1. (define *use-custom-shepherd* #true)
  2. (define *parent-shepherd-package* shepherd-0.9)
  3. (define *custom-shepherd-dir* "/home/alendvai/workspace/guix/shepherd")
  4. (define *custom-shepherd-only-from-commits* #true)
  5.  
  6. (define custom-shepherd
  7.   (package
  8.     (inherit *parent-shepherd-package*)
  9.     (version "dev")
  10.     ;; (inputs
  11.     ;;  (modify-inputs (package-inputs *parent-shepherd-package*)
  12.     ;;    (replace "guile-fibers" custom-guile-fibers)))
  13.     (source
  14.      (if *custom-shepherd-only-from-commits*
  15.          (git-checkout
  16.           (url (string-append "file://" *custom-shepherd-dir*))
  17.           (branch "attila")
  18.           ;;(commit "a281ebfd4466a6925e264c303201b8dc44d33cb4")
  19.           )
  20.          (local-file *custom-shepherd-dir*
  21.                      #:recursive? #t
  22.                      #:select? (git-predicate *custom-shepherd-dir*))))
  23.     (arguments
  24.      `(#:tests? #false
  25.        ,@(package-arguments *parent-shepherd-package*)))))
  26.  
  27. (operating-system
  28.   ;; Use own Shepherd package.
  29.   (essential-services
  30.    (modify-services (operating-system-default-essential-services
  31.                      this-operating-system)
  32.      (shepherd-root-service-type config =>
  33.                                  (shepherd-configuration
  34.                                   (inherit config)
  35.                                   (shepherd (if *use-custom-shepherd*
  36.                                                 custom-shepherd
  37.                                                 shepherd)))))))
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement