2017-04-12 20:28:40 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2018-08-10 14:00:22 +00:00
|
|
|
;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
|
2017-04-19 20:30:07 +00:00
|
|
|
;;; Copyright © 2017 Corentin Bocquillon <corentin@nybble.fr>
|
2020-02-17 21:37:45 +00:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-04-06 19:25:19 +00:00
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2018-04-17 20:26:35 +00:00
|
|
|
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
|
2020-04-12 13:26:42 +00:00
|
|
|
;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
|
2018-11-08 02:53:43 +00:00
|
|
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
2020-12-20 20:57:37 +00:00
|
|
|
;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
|
2019-04-24 10:25:16 +00:00
|
|
|
;;; Copyright © 2019 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
2021-09-25 07:27:02 +00:00
|
|
|
;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
2020-05-29 00:28:49 +00:00
|
|
|
;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
|
2020-06-07 18:00:15 +00:00
|
|
|
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
2020-11-16 12:08:27 +00:00
|
|
|
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
2021-02-28 02:48:39 +00:00
|
|
|
;;; Copyright © 2021 qblade <qblade@protonmail.com>
|
2021-03-16 18:19:43 +00:00
|
|
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2017-04-12 20:28:40 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages build-tools)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2018-08-09 00:40:56 +00:00
|
|
|
#:use-module (guix git-download)
|
2018-04-06 19:25:19 +00:00
|
|
|
#:use-module (guix build-system cmake)
|
2017-04-12 20:28:40 +00:00
|
|
|
#:use-module (gnu packages)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages adns)
|
2021-02-28 02:48:39 +00:00
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages bash)
|
2020-05-29 00:28:49 +00:00
|
|
|
#:use-module (gnu packages check)
|
2017-07-14 10:04:15 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages cpp)
|
|
|
|
#:use-module (gnu packages gcc)
|
2020-06-07 18:00:15 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages logging)
|
2018-11-08 02:53:43 +00:00
|
|
|
#:use-module (gnu packages lua)
|
2019-04-24 10:25:16 +00:00
|
|
|
#:use-module (gnu packages package-management)
|
2020-06-07 18:00:15 +00:00
|
|
|
#:use-module (gnu packages pcre)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages pretty-print)
|
|
|
|
#:use-module (gnu packages protobuf)
|
2017-04-12 20:28:40 +00:00
|
|
|
#:use-module (gnu packages python)
|
2018-04-17 20:26:35 +00:00
|
|
|
#:use-module (gnu packages python-crypto)
|
|
|
|
#:use-module (gnu packages python-web)
|
2020-05-29 00:28:49 +00:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages regex)
|
|
|
|
#:use-module (gnu packages rpc)
|
2020-06-07 18:00:15 +00:00
|
|
|
#:use-module (gnu packages sqlite)
|
2020-12-20 20:57:37 +00:00
|
|
|
#:use-module (gnu packages tls)
|
2017-04-19 20:30:07 +00:00
|
|
|
#:use-module (gnu packages ninja)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system python))
|
2017-04-12 20:28:40 +00:00
|
|
|
|
|
|
|
(define-public bam
|
|
|
|
(package
|
|
|
|
(name "bam")
|
2018-11-08 02:53:43 +00:00
|
|
|
(version "0.5.1")
|
2017-04-12 20:28:40 +00:00
|
|
|
(source (origin
|
2018-11-08 02:53:43 +00:00
|
|
|
;; do not use auto-generated tarballs
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/matricks/bam")
|
2018-11-08 02:53:43 +00:00
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2017-04-12 20:28:40 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-11-08 02:53:43 +00:00
|
|
|
"13br735ig7lygvzyfd15fc2rdygrqm503j6xj5xkrl1r7w2wipq6"))))
|
2017-04-12 20:28:40 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2020-11-16 12:17:27 +00:00
|
|
|
`(#:make-flags `(,(string-append "CC=" ,(cc-for-target))
|
2018-11-08 02:53:43 +00:00
|
|
|
,(string-append "INSTALL_PREFIX="
|
|
|
|
(assoc-ref %outputs "out")))
|
|
|
|
#:test-target "test"
|
|
|
|
#:phases
|
2017-04-12 20:28:40 +00:00
|
|
|
(modify-phases %standard-phases
|
2018-11-08 02:53:43 +00:00
|
|
|
(delete 'configure))))
|
2017-04-12 20:28:40 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("python" ,python-2)))
|
2018-11-08 02:53:43 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list lua))
|
2017-04-12 20:28:40 +00:00
|
|
|
(home-page "https://matricks.github.io/bam/")
|
|
|
|
(synopsis "Fast and flexible build system")
|
|
|
|
(description "Bam is a fast and flexible build system. Bam uses Lua to
|
|
|
|
describe the build process. It takes its inspiration for the script files
|
|
|
|
from scons. While scons focuses on being 100% correct when building, bam
|
|
|
|
makes a few sacrifices to acquire fast full and incremental build times.")
|
|
|
|
(license license:bsd-3)))
|
2017-04-19 20:30:07 +00:00
|
|
|
|
2018-04-06 19:25:19 +00:00
|
|
|
(define-public bear
|
|
|
|
(package
|
|
|
|
(name "bear")
|
2021-10-08 19:06:02 +00:00
|
|
|
(version "3.0.16")
|
2018-04-06 19:25:19 +00:00
|
|
|
(source (origin
|
2018-08-09 00:40:56 +00:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/rizsotto/Bear")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-12-20 20:57:37 +00:00
|
|
|
(patches (search-patches
|
|
|
|
"bear-disable-preinstall-tests.patch"))
|
2018-04-06 19:25:19 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2021-10-08 19:06:02 +00:00
|
|
|
"01giv11nhjp4pvw8ssf8bxf503pabwnwnvfzmrxyxixnairwmykg"))))
|
2018-04-06 19:25:19 +00:00
|
|
|
(build-system cmake-build-system)
|
2020-12-20 20:57:37 +00:00
|
|
|
(arguments
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'check 'set-build-environment
|
|
|
|
(lambda _
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
#t))
|
|
|
|
;; TODO: Test Configuration is Incomplete
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(invoke "ctest"))))))
|
2018-05-15 12:10:11 +00:00
|
|
|
(inputs
|
2020-12-20 20:57:37 +00:00
|
|
|
`(("c-ares" ,c-ares)
|
|
|
|
("fmt" ,fmt)
|
|
|
|
("grpc" ,grpc)
|
|
|
|
("json-modern-cxx" ,json-modern-cxx)
|
|
|
|
("protobuf" ,protobuf)
|
|
|
|
("python" ,python-wrapper)
|
|
|
|
("re2" ,re2)
|
|
|
|
("spdlog" ,spdlog)))
|
|
|
|
(native-inputs
|
|
|
|
`(("abseil-cpp" ,abseil-cpp)
|
|
|
|
("gcc-9" ,gcc-9) ; for <filesystem>, #44896
|
|
|
|
("googletest" ,googletest)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python-lit" ,python-lit)
|
|
|
|
("zlib" ,zlib)))
|
2018-04-06 19:25:19 +00:00
|
|
|
(home-page "https://github.com/rizsotto/Bear")
|
|
|
|
(synopsis "Tool for generating a compilation database")
|
|
|
|
(description "A JSON compilation database is used in the Clang project to
|
|
|
|
provide information on how a given compilation unit is processed. With this,
|
|
|
|
it is easy to re-run the compilation with alternate programs. Bear is used to
|
|
|
|
generate such a compilation database.")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
2021-02-28 02:48:39 +00:00
|
|
|
(define-public bmake
|
|
|
|
(package
|
|
|
|
(name "bmake")
|
2021-12-16 22:18:22 +00:00
|
|
|
(version "20211207")
|
2021-02-28 02:48:39 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"http://www.crufty.net/ftp/pub/sjg/bmake-" version ".tar.gz"))
|
|
|
|
(sha256
|
2021-12-16 22:18:22 +00:00
|
|
|
(base32 "1cvm10gh7gb0rjcfgbssrw13ha24qmagifgkr53kk39r9693ylq5"))))
|
2021-02-28 02:48:39 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
2021-12-16 22:20:51 +00:00
|
|
|
(list bash-minimal))
|
2021-02-28 02:48:39 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list coreutils))
|
2021-02-28 02:48:39 +00:00
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; test during build
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'fix-test ; fix from nixpkgs
|
|
|
|
(lambda _
|
|
|
|
(substitute* "unit-tests/unexport-env.mk"
|
|
|
|
(("PATH=\t/bin:/usr/bin:/sbin:/usr/sbin")
|
|
|
|
"PATH := ${PATH}"))))
|
|
|
|
(add-after 'configure 'remove-fail-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* "unit-tests/Makefile"
|
|
|
|
(("cmd-interrupt") "")
|
2021-12-16 22:18:22 +00:00
|
|
|
(("varmod-localtime") "")))))
|
2021-02-28 02:48:39 +00:00
|
|
|
#:configure-flags
|
|
|
|
(list
|
|
|
|
(string-append
|
|
|
|
"--with-defshell=" (assoc-ref %build-inputs "bash") "/bin/bash")
|
|
|
|
(string-append
|
|
|
|
"--with-default-sys-path=" (assoc-ref %outputs "out") "/share/mk"))
|
|
|
|
#:make-flags
|
|
|
|
(list "INSTALL=install"))) ;; use coreutils install
|
|
|
|
(home-page "http://www.crufty.net/help/sjg/bmake.htm")
|
|
|
|
(synopsis "BSD's make")
|
|
|
|
(description
|
|
|
|
"bmake is a program designed to simplify the maintenance of other
|
|
|
|
programs. Its input is a list of specifications as to the files upon which
|
|
|
|
programs and other files depend.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2018-09-12 11:45:34 +00:00
|
|
|
(define-public gn
|
2020-10-18 15:37:10 +00:00
|
|
|
(let ((commit "e327ffdc503815916db2543ec000226a8df45163")
|
|
|
|
(revision "1819")) ;as returned by `git describe`, used below
|
2018-09-12 11:45:34 +00:00
|
|
|
(package
|
|
|
|
(name "gn")
|
|
|
|
(version (git-version "0.0" revision commit))
|
|
|
|
(home-page "https://gn.googlesource.com/gn")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference (url home-page) (commit commit)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-10-18 15:37:10 +00:00
|
|
|
"0kvlfj3www84zp1vmxh76x8fdjm9hyk8lkh2vdsidafpmm75fphr"))
|
2018-09-12 11:45:34 +00:00
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2019-11-14 15:59:37 +00:00
|
|
|
`(#:phases (modify-phases %standard-phases
|
2018-09-12 11:45:34 +00:00
|
|
|
(add-before 'configure 'set-build-environment
|
|
|
|
(lambda _
|
|
|
|
(setenv "CC" "gcc") (setenv "CXX" "g++")
|
2021-05-13 10:34:17 +00:00
|
|
|
(setenv "AR" "ar")))
|
2018-09-12 11:45:34 +00:00
|
|
|
(replace 'configure
|
|
|
|
(lambda _
|
2019-02-22 14:52:56 +00:00
|
|
|
(invoke "python" "build/gen.py"
|
2018-09-12 11:45:34 +00:00
|
|
|
"--no-last-commit-position")))
|
|
|
|
(add-after 'configure 'create-last-commit-position
|
|
|
|
(lambda _
|
|
|
|
;; Create "last_commit_position.h" to avoid a dependency
|
|
|
|
;; on 'git' (and the checkout..).
|
|
|
|
(call-with-output-file "out/last_commit_position.h"
|
|
|
|
(lambda (port)
|
|
|
|
(format port
|
2020-04-12 13:26:42 +00:00
|
|
|
(string-append
|
|
|
|
"#define LAST_COMMIT_POSITION_NUM ~a\n"
|
|
|
|
"#define LAST_COMMIT_POSITION \"~a (~a)\"\n")
|
2021-05-13 10:34:17 +00:00
|
|
|
,revision ,revision ,(string-take commit 8))))))
|
2018-09-12 11:45:34 +00:00
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(invoke "ninja" "-C" "out" "gn"
|
|
|
|
"-j" (number->string (parallel-job-count)))))
|
2019-11-14 15:59:37 +00:00
|
|
|
(replace 'check
|
2021-05-13 10:34:17 +00:00
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
2019-11-14 15:59:37 +00:00
|
|
|
(if tests?
|
2021-05-13 10:34:17 +00:00
|
|
|
(begin
|
2019-11-14 15:59:37 +00:00
|
|
|
(invoke "ninja" "-C" "out" "gn_unittests"
|
|
|
|
"-j" (number->string (parallel-job-count)))
|
|
|
|
(invoke "./out/gn_unittests"))
|
|
|
|
(format #t "test suite not run~%"))))
|
2018-09-12 11:45:34 +00:00
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2021-05-13 10:34:17 +00:00
|
|
|
(install-file "out/gn" (string-append out "/bin"))))))))
|
2018-09-12 11:45:34 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("ninja" ,ninja)
|
2021-05-13 10:34:17 +00:00
|
|
|
("python" ,python-wrapper)))
|
2018-09-12 11:45:34 +00:00
|
|
|
(synopsis "Generate Ninja build files")
|
|
|
|
(description
|
|
|
|
"GN is a tool that collects information about a project from @file{.gn}
|
|
|
|
files and generates build instructions for the Ninja build system.")
|
|
|
|
;; GN is distributed as BSD-3, but bundles some files from ICU using the
|
|
|
|
;; X11 license.
|
|
|
|
(license (list license:bsd-3 license:x11)))))
|
|
|
|
|
2017-04-19 20:30:07 +00:00
|
|
|
(define-public meson
|
|
|
|
(package
|
|
|
|
(name "meson")
|
2021-10-27 13:54:12 +00:00
|
|
|
(version "0.60.0")
|
2017-04-19 20:30:07 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/mesonbuild/meson/"
|
2017-10-13 20:47:00 +00:00
|
|
|
"releases/download/" version "/meson-"
|
|
|
|
version ".tar.gz"))
|
2017-04-19 20:30:07 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2021-10-27 13:54:12 +00:00
|
|
|
"0irdn7hx5a182jbvq2kmdwd1v7mljzh5fm27pg4xk879hnv6h388"))
|
2021-10-07 18:54:08 +00:00
|
|
|
(patches (search-patches
|
|
|
|
"meson-allow-dirs-outside-of-prefix.patch"))))
|
2017-04-19 20:30:07 +00:00
|
|
|
(build-system python-build-system)
|
2018-03-09 14:25:40 +00:00
|
|
|
(arguments
|
2021-04-03 04:26:03 +00:00
|
|
|
`(;; FIXME: Tests require many additional inputs and patching many
|
|
|
|
;; hard-coded file system locations in "run_unittests.py".
|
2018-03-09 14:29:19 +00:00
|
|
|
#:tests? #f
|
|
|
|
#:phases (modify-phases %standard-phases
|
2018-03-09 14:25:40 +00:00
|
|
|
;; Meson calls the various executables in out/bin through the
|
|
|
|
;; Python interpreter, so we cannot use the shell wrapper.
|
|
|
|
(delete 'wrap))))
|
2021-12-13 16:18:24 +00:00
|
|
|
(inputs (list ninja))
|
2021-11-22 21:36:47 +00:00
|
|
|
|
|
|
|
;; XXX: Python is propagated just to 'GUIX_PYTHONPATH' is set (!).
|
|
|
|
;; MESON-WRAPPED below fixes that by wrapping the 'meson' executable.
|
|
|
|
;; TODO: Make MESON-WRAPPED the new MESON on the next core update cycle.
|
2021-12-13 16:18:24 +00:00
|
|
|
(propagated-inputs (list python))
|
2021-11-22 21:36:47 +00:00
|
|
|
|
2017-04-19 20:30:07 +00:00
|
|
|
(home-page "https://mesonbuild.com/")
|
2021-11-18 14:17:52 +00:00
|
|
|
(properties '((hidden? . #t)))
|
2017-04-19 20:30:07 +00:00
|
|
|
(synopsis "Build system designed to be fast and user-friendly")
|
|
|
|
(description
|
|
|
|
"The Meson build system is focused on user-friendliness and speed.
|
|
|
|
It can compile code written in C, C++, Fortran, Java, Rust, and other
|
|
|
|
languages. Meson provides features comparable to those of the
|
|
|
|
Autoconf/Automake/make combo. Build specifications, also known as @dfn{Meson
|
2018-03-07 00:31:27 +00:00
|
|
|
files}, are written in a custom domain-specific language (@dfn{DSL}) that
|
|
|
|
resembles Python.")
|
2017-04-19 20:30:07 +00:00
|
|
|
(license license:asl2.0)))
|
2017-07-14 10:04:15 +00:00
|
|
|
|
2021-11-18 14:17:52 +00:00
|
|
|
(define-public meson-wrapped
|
|
|
|
(package/inherit meson
|
2021-11-22 21:36:47 +00:00
|
|
|
(propagated-inputs '()) ;don't propagate Python
|
|
|
|
(inputs (modify-inputs (package-inputs meson)
|
|
|
|
(prepend python-wrapper)))
|
2021-11-18 14:17:52 +00:00
|
|
|
(arguments
|
|
|
|
`(;; FIXME: Tests require many additional inputs and patching many
|
|
|
|
;; hard-coded file system locations in "run_unittests.py".
|
|
|
|
#:tests? #f
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
;; Meson calls the various executables in out/bin through the
|
|
|
|
;; Python interpreter, so we cannot use the shell wrapper.
|
|
|
|
(replace 'wrap
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
(let ((python-version
|
|
|
|
(python-version (assoc-ref inputs "python")))
|
|
|
|
(output (assoc-ref outputs "out")))
|
|
|
|
(substitute* (string-append output "/bin/meson")
|
|
|
|
(("# EASY-INSTALL-ENTRY-SCRIPT")
|
|
|
|
(format #f "\
|
|
|
|
import sys
|
|
|
|
sys.path.insert(0, '~a/lib/python~a/site-packages')
|
|
|
|
# EASY-INSTALL-ENTRY-SCRIPT"
|
|
|
|
output python-version)))))))))
|
|
|
|
(properties '())))
|
|
|
|
|
2021-10-28 14:12:54 +00:00
|
|
|
;;; This older Meson variant is kept for now for gtkmm and others that may
|
|
|
|
;;; have problems with 0.60.
|
|
|
|
(define-public meson-0.59
|
|
|
|
(package/inherit meson
|
|
|
|
(version "0.59.4")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/mesonbuild/meson/"
|
|
|
|
"releases/download/" version "/meson-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"117cm8794h291lca1wljz1pwnzidgbvrpg3mw3np6ksma368hyd7"))
|
|
|
|
(patches (search-patches
|
|
|
|
"meson-allow-dirs-outside-of-prefix.patch"))))))
|
|
|
|
|
2017-07-14 10:04:15 +00:00
|
|
|
(define-public premake4
|
|
|
|
(package
|
|
|
|
(name "premake")
|
|
|
|
(version "4.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/premake/Premake/"
|
|
|
|
version "/premake-" version "-src.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list unzip)) ; for unpacking the source
|
2017-07-14 10:04:15 +00:00
|
|
|
(arguments
|
2020-11-16 12:08:27 +00:00
|
|
|
`(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
|
2017-07-14 10:04:15 +00:00
|
|
|
#:tests? #f ; No test suite
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(add-after 'unpack 'enter-source
|
|
|
|
(lambda _ (chdir "build/gmake.unix") #t))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(install-file "../../bin/release/premake4"
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin"))
|
|
|
|
#t)))))
|
|
|
|
(synopsis "Portable software build tool")
|
|
|
|
(description "@code{premake4} is a command line utility that reads a
|
|
|
|
scripted definition of a software project and outputs @file{Makefile}s or
|
|
|
|
other lower-level build files.")
|
|
|
|
(home-page "https://premake.github.io")
|
|
|
|
(license license:bsd-3)))
|
2018-04-17 20:26:35 +00:00
|
|
|
|
2020-03-15 00:52:37 +00:00
|
|
|
(define-public premake5
|
|
|
|
(package
|
|
|
|
(inherit premake4)
|
2020-06-30 22:53:28 +00:00
|
|
|
(version "5.0.0-alpha15")
|
2020-03-15 00:52:37 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/premake/premake-core/"
|
|
|
|
"releases/download/v" version
|
|
|
|
"/premake-" version "-src.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-30 22:53:28 +00:00
|
|
|
"0lyxfyqxyhjqsb3kmx1fyrxinb26i68hb7w7rg8lajczrgkmc3w8"))))
|
2020-03-15 00:52:37 +00:00
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments premake4)
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases ,phases
|
2020-06-30 22:53:28 +00:00
|
|
|
(replace 'enter-source
|
|
|
|
(lambda _ (chdir "build/gmake2.unix") #t))
|
2020-03-15 00:52:37 +00:00
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(install-file "../../bin/release/premake5"
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin"))
|
|
|
|
#t))))))
|
|
|
|
(description "@code{premake5} is a command line utility that reads a
|
|
|
|
scripted definition of a software project and outputs @file{Makefile}s or
|
|
|
|
other lower-level build files.")))
|
|
|
|
|
2020-06-07 18:00:15 +00:00
|
|
|
(define-public tup
|
|
|
|
(package
|
|
|
|
(name "tup")
|
2020-06-16 03:15:11 +00:00
|
|
|
(version "0.7.9")
|
2020-06-07 18:00:15 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://gittup.org/tup/releases/tup-v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-16 03:15:11 +00:00
|
|
|
"0gnd2598xqgwihdkfkx7qn0q6p4n7npam1fy83mp7s04zwj99syc"))
|
2020-06-07 18:00:15 +00:00
|
|
|
(patches (search-patches "tup-unbundle-dependencies.patch"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; NOTE: Tup uses a slightly modified Lua, so it cannot be
|
|
|
|
;; unbundled. See: src/lula/tup-lua.patch
|
|
|
|
(delete-file-recursively "src/pcre")
|
|
|
|
(delete-file-recursively "src/sqlite3")
|
|
|
|
#t))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; There is a bootstrap script, but it doesn't do what you think - it
|
|
|
|
;; builds tup.
|
|
|
|
(delete 'bootstrap)
|
|
|
|
(replace 'configure
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/tup/link.sh"
|
|
|
|
(("`git describe`") ,version))
|
|
|
|
(with-output-to-file "tup.config"
|
|
|
|
(lambda _
|
|
|
|
(format #t "CONFIG_TUP_USE_SYSTEM_SQLITE=y~%")))
|
|
|
|
#t))
|
|
|
|
(delete 'check)
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
;; Based on bootstrap-nofuse.sh, but with a detour to patch-shebang.
|
|
|
|
(invoke "./build.sh")
|
|
|
|
(invoke "./build/tup" "init")
|
|
|
|
(invoke "./build/tup" "generate" "--verbose" "build-nofuse.sh")
|
|
|
|
(patch-shebang "build-nofuse.sh")
|
|
|
|
(invoke "./build-nofuse.sh")))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((outdir (assoc-ref outputs "out"))
|
|
|
|
(ftdetect (string-append outdir
|
|
|
|
"/share/vim/vimfiles/ftdetect")))
|
|
|
|
(install-file "tup" (string-append outdir "/bin"))
|
|
|
|
(install-file "tup.1" (string-append outdir "/share/man/man1"))
|
|
|
|
(install-file "contrib/syntax/tup.vim"
|
|
|
|
(string-append outdir "/share/vim/vimfiles/syntax"))
|
|
|
|
(mkdir-p ftdetect)
|
|
|
|
(with-output-to-file (string-append ftdetect "/tup.vim")
|
|
|
|
(lambda _
|
|
|
|
(display "au BufNewFile,BufRead Tupfile,*.tup setf tup")))
|
|
|
|
#t))))))
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list fuse pcre
|
|
|
|
`(,pcre "bin") ; pcre-config
|
|
|
|
sqlite))
|
2020-06-07 18:00:15 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list pkg-config))
|
2020-06-07 18:00:15 +00:00
|
|
|
(home-page "http://gittup.org/tup/")
|
|
|
|
(synopsis "Fast build system that's hard to get wrong")
|
|
|
|
(description "Tup is a generic build system based on a directed acyclic
|
|
|
|
graphs of commands to be executed. Tup instruments your build to detect the
|
|
|
|
exact dependencies of the commands, allowing you to take advantage of ideal
|
|
|
|
parallelism during incremental builds, and detecting any situations where
|
|
|
|
a build worked by accident.")
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
2018-04-17 20:26:35 +00:00
|
|
|
(define-public osc
|
|
|
|
(package
|
|
|
|
(name "osc")
|
2021-03-10 04:00:03 +00:00
|
|
|
(version "0.172.0")
|
2018-04-17 20:26:35 +00:00
|
|
|
(source
|
|
|
|
(origin
|
2019-04-24 10:25:16 +00:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/openSUSE/osc")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2018-04-17 20:26:35 +00:00
|
|
|
(sha256
|
2021-03-10 04:00:03 +00:00
|
|
|
(base32 "1sqdnkka3c6b6hwnrmlwrgy7w62cp8raq8mph9pgd2lydzzbvwlp"))))
|
2018-04-17 20:26:35 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
2019-04-24 10:25:16 +00:00
|
|
|
`(#:phases
|
2018-04-17 20:26:35 +00:00
|
|
|
(modify-phases %standard-phases
|
2019-04-24 10:25:16 +00:00
|
|
|
(add-after 'install 'fix-filename
|
2018-04-17 20:26:35 +00:00
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
|
|
|
|
;; Main osc tool is renamed in spec file, not setup.py, let's
|
|
|
|
;; do that too.
|
|
|
|
(rename-file
|
|
|
|
(string-append bin "osc-wrapper.py")
|
|
|
|
(string-append bin "osc"))
|
2019-04-24 10:25:16 +00:00
|
|
|
#t))))))
|
2021-03-10 04:00:03 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-chardet))
|
2018-04-17 20:26:35 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-m2crypto python-pycurl rpm)) ; for python-rpm
|
2018-04-17 20:26:35 +00:00
|
|
|
(home-page "https://github.com/openSUSE/osc")
|
|
|
|
(synopsis "Open Build Service command line tool")
|
|
|
|
(description "@command{osc} is a command line interface to the Open Build
|
|
|
|
Service. It allows you to checkout, commit, perform reviews etc. The vast
|
|
|
|
majority of the OBS functionality is available via commands and the rest can
|
|
|
|
be reached via direct API calls.")
|
|
|
|
(license license:gpl2+)))
|
2020-05-29 00:28:49 +00:00
|
|
|
|
|
|
|
(define-public compiledb
|
|
|
|
(package
|
|
|
|
(name "compiledb")
|
|
|
|
(version "0.10.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "compiledb" version))
|
|
|
|
(sha256
|
|
|
|
(base32 "0vlngsdxfakyl8b7rnvn8h3l216lhbrrydr04yhy6kd03zflgfq6"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'no-compat-shim-dependency
|
|
|
|
;; shutilwhich is only needed for python 3.3 and earlier
|
|
|
|
(lambda _
|
|
|
|
(substitute* "setup.py" (("^ *'shutilwhich'\n") ""))
|
|
|
|
(substitute* "compiledb/compiler.py" (("shutilwhich") "shutil")))))))
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-bashlex python-click))
|
2020-05-29 00:28:49 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-pytest))
|
2020-05-29 00:28:49 +00:00
|
|
|
(home-page
|
|
|
|
"https://github.com/nickdiego/compiledb")
|
|
|
|
(synopsis
|
|
|
|
"Generate Clang JSON Compilation Database files for make-based build systems")
|
|
|
|
(description
|
|
|
|
"@code{compiledb} provides a @code{make} python wrapper script which,
|
|
|
|
besides executing the make build command, updates the JSON compilation
|
|
|
|
database file corresponding to that build, resulting in a command-line
|
|
|
|
interface similar to Bear.")
|
|
|
|
(license license:gpl3)))
|
2020-05-06 02:01:57 +00:00
|
|
|
|
|
|
|
(define-public build
|
|
|
|
(package
|
|
|
|
(name "build")
|
|
|
|
(version "0.3.10")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.codesynthesis.com/download/"
|
|
|
|
"build/" (version-major+minor version)
|
|
|
|
"/build-" version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32 "1lx5rpnmsbip43zpp0a57sl5rm7pjb0y6i2si6rfglfp4p9d3z76"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list (string-append "install_prefix=" %output))
|
|
|
|
#:tests? #f
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(delete 'build)
|
|
|
|
(delete 'configure))))
|
|
|
|
(home-page "https://www.codesynthesis.com/projects/build/")
|
|
|
|
(synopsis "Massively-parallel build system implemented on top of GNU make")
|
|
|
|
(description "Build is a massively-parallel software build system
|
|
|
|
implemented on top of GNU Make, designed with the following tasks in mind:
|
|
|
|
@itemize
|
|
|
|
@item configuration
|
|
|
|
@item building
|
|
|
|
@item testing
|
|
|
|
@item installation
|
|
|
|
@end itemize
|
|
|
|
Build has features such as:
|
|
|
|
@itemize
|
|
|
|
@item Position-independent makefiles.
|
|
|
|
@item Non-recursive multi-makefile include-based structure.
|
|
|
|
@item Leaf makefiles are full-fledged GNU makefiles, not just variable definitions.
|
|
|
|
@item Complete dependency graph.
|
|
|
|
@item Inter-project dependency tracking.
|
|
|
|
@item Extensible language/compiler framework.
|
|
|
|
@end itemize")
|
|
|
|
(license license:gpl2+)))
|