[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fetching git submodule using (uri (recursive? #t))

From: Myles English
Subject: fetching git submodule using (uri (recursive? #t))
Date: Tue, 28 May 2019 14:18:29 +0100
User-agent: mu4e 1.2.0; emacs 26.2

Hello guix,

I am trying to build this package that uses git submodules but the
(recursive? #t) doesn't seem to have any effect.  I understand that it
would be preferable to replace the submodules with separate packages but
the modules themselves are quite specific to the main package,
e.g. describes itself as
"SolveSpace's independent fork of libdxfrw".

The actual build error is:

-- Using in-tree libdxfrw
CMake Error at CMakeLists.txt:111 (add_subdirectory):
  The source directory


  does not contain a CMakeLists.txt file.

(define-public solvespace-git
  (let ((commit "03fa5f30f1a1db7231a25653c9dd38044fe06640"))
     (name "solvespace-git")
     (version "0.0.1")
       (method git-fetch)
       (uri (git-reference
             (url "";)
             (commit commit)
             (recursive? #t)))
     (build-system cmake-build-system)
      `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
        (modify-phases %standard-phases
                       (add-after 'unpack 'set-git-commit-hash
                                  (lambda* (#:key inputs #:allow-other-keys)
                                    (substitute* "CMakeLists.txt"
                                                 (("\\# set\\(GIT_COMMIT_HASH 
"set(GIT_COMMIT_HASH " ,commit ")")))
        ("git" ,git)
        ("libpng" ,libpng)
        ("cairo" ,cairo)
        ("freetype" ,freetype)
        ("json-c" ,json-c)
        ;; for GUI
        ("fontconfig" ,fontconfig)
        ("gtkmm" ,gtkmm) ;;@3.0
        ("pangomm" ,pangomm) ;;@1.4
        ;;       ("gl" ,gl)
        ("glu" ,glu)
        ;; optional: libspnav
     (home-page "";)
     (synopsis "Parametric 3D CAD too")
     (description "Parametric 3D CAD too")
     (license license:gpl3+))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]