From 2742663870188f7edbad56d42955c3ade86e1ad9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 26 Sep 2019 08:54:30 -0500 Subject: gn: web-bootstrap-3: Fix font references. * gn/packages/web.scm (web-bootstrap-3)[arguments]: Hardcode location of font directory. (web-bootstrap-3.3)[inherit]: Inherit from web-bootstrap-3. --- gn/packages/web.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gn/packages/web.scm b/gn/packages/web.scm index 633982a..ef2a86e 100644 --- a/gn/packages/web.scm +++ b/gn/packages/web.scm @@ -96,11 +96,25 @@ extensive prebuilt components, and powerful plugins built on jQuery.") (file-name (git-file-name name version)) (sha256 (base32 "1wsv79rvzaacyf740mwmhxadpwf28pad711jhbxl26zgqjrpzcbp")))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + (name "bootstrap") + (targetdir (string-append out "/share/web/" name)) + (source (assoc-ref %build-inputs "source")) + (dist (string-append source "/dist"))) + (copy-recursively dist targetdir) + (substitute* (find-files (string-append targetdir "/css") ".") + (("../fonts") (string-append targetdir "/fonts"))) + #t)))) (native-inputs `(("source" ,source))))) (define-public web-bootstrap-3.3 (package - (inherit web-bootstrap) + (inherit web-bootstrap-3) (name "web-bootstrap") (version "3.3.7") ; July 25, 2016 (source -- cgit v1.2.3