Hello,

Here is what I had somewhere lost on my computer for lutris:

(arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (add-after 'install 'wrap-program
           (lambda* (#:key outputs inputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (input-path (lambda (lib path)
                                  (string-append (assoc-ref inputs lib) path)))
                    (libraries '("mesa" "glu" "libdrm" "webkitgtk"))

                    (libs
                     (map (lambda (lib) (input-path lib "/lib"))
                          libraries))
                    (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
               (wrap-program (string-append out "/bin/lutris")
                 `("GI_TYPELIB_PATH" = (,gi-typelib-path))
                 `("LD_LIBRARY_PATH" ":" prefix ,libs))
               #t))))))

As I remember, it should build but I kind of gave up with runtime stuff.
Also, I'm not sure it's compatible with FSF.
Hope it helps.

Lprndn

Reply via email to