From: Myles English <mylesenglish@gmail.com>
To: help-guix@gnu.org
Subject: fetching git submodule using (uri (recursive? #t))
Date: Tue, 28 May 2019 14:18:29 +0100 [thread overview]
Message-ID: <87r28ipviy.fsf@gmail.com> (raw)
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. https://github.com/solvespace/libdxfrw 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
/tmp/guix-build-solvespace-git-0.0.1.drv-0/source/extlib/libdxfrw
does not contain a CMakeLists.txt file.
(define-public solvespace-git
(let ((commit "03fa5f30f1a1db7231a25653c9dd38044fe06640"))
(package
(name "solvespace-git")
(version "0.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/solvespace/solvespace.git")
(commit commit)
(recursive? #t)))
(sha256
(base32
"0vj40j7fkd0mmwh7p5r1h8gsisfjcikrhwmy1dzi4hpz0w7arxqb"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-git-commit-hash
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "CMakeLists.txt"
(("include\\(GetGitCommitHash\\)")
"#include(GetGitCommitHash)")
(("\\# set\\(GIT_COMMIT_HASH 0000000000000000000000000000000000000000\\)")
(string-append "set(GIT_COMMIT_HASH " ,commit ")")))
#t)))))
(inputs
`(
("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 "http://solvespace.com")
(synopsis "Parametric 3D CAD too")
(description "Parametric 3D CAD too")
(license license:gpl3+))))
Thanks,
Myles
next reply other threads:[~2019-05-28 13:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 13:18 Myles English [this message]
2019-06-01 14:09 ` fetching git submodule using (uri (recursive? #t)) Ludovic Courtès
2019-06-03 22:30 ` Myles English
2019-06-04 13:40 ` Myles English
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r28ipviy.fsf@gmail.com \
--to=mylesenglish@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.