2017-04-12 16:28:40 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2018-08-10 10:00:22 -04:00
|
|
|
;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
|
2017-04-19 16:30:07 -04:00
|
|
|
;;; Copyright © 2017 Corentin Bocquillon <corentin@nybble.fr>
|
2020-02-17 16:37:45 -05:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-04-06 15:25:19 -04:00
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2018-04-17 16:26:35 -04:00
|
|
|
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
|
2020-04-12 09:26:42 -04:00
|
|
|
;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
|
2018-11-07 21:53:43 -05:00
|
|
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
Update email for Brett Gilio.
* .mailmap: Add name and email for Brett Gilio.
* gnu/local.mk, gnu/packages/admin.scm, gnu/packages/audio.scm,
gnu/packages/bittorrent.scm, gnu/packages/build-tools.scm,
gnu/packages/cran.scm, gnu/packages/emacs-xyz.scm,
gnu/packages/messaging.scm, gnu/packages/python-xyz.scm,
gnu/packages/sml.scm, gnu/packages/terminals.scm, gnu/packages/wm.scm:
Update email for Brett Gilio.
2019-12-19 12:35:23 -05:00
|
|
|
;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
|
2019-04-24 06:25:16 -04:00
|
|
|
;;; Copyright © 2019 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
2020-03-14 20:52:37 -04:00
|
|
|
;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
|
2017-04-12 16:28:40 -04: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-08 20:40:56 -04:00
|
|
|
#:use-module (guix git-download)
|
2018-04-06 15:25:19 -04:00
|
|
|
#:use-module (guix build-system cmake)
|
2017-04-12 16:28:40 -04:00
|
|
|
#:use-module (gnu packages)
|
2017-07-14 06:04:15 -04:00
|
|
|
#:use-module (gnu packages compression)
|
2018-11-07 21:53:43 -05:00
|
|
|
#:use-module (gnu packages lua)
|
2019-04-24 06:25:16 -04:00
|
|
|
#:use-module (gnu packages package-management)
|
2017-04-12 16:28:40 -04:00
|
|
|
#:use-module (gnu packages python)
|
2018-04-17 16:26:35 -04:00
|
|
|
#:use-module (gnu packages python-crypto)
|
|
|
|
#:use-module (gnu packages python-web)
|
2017-04-19 16:30:07 -04:00
|
|
|
#:use-module (gnu packages ninja)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system python))
|
2017-04-12 16:28:40 -04:00
|
|
|
|
|
|
|
(define-public bam
|
|
|
|
(package
|
|
|
|
(name "bam")
|
2018-11-07 21:53:43 -05:00
|
|
|
(version "0.5.1")
|
2017-04-12 16:28:40 -04:00
|
|
|
(source (origin
|
2018-11-07 21:53:43 -05:00
|
|
|
;; do not use auto-generated tarballs
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/matricks/bam.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2017-04-12 16:28:40 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-11-07 21:53:43 -05:00
|
|
|
"13br735ig7lygvzyfd15fc2rdygrqm503j6xj5xkrl1r7w2wipq6"))))
|
2017-04-12 16:28:40 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-11-07 21:53:43 -05:00
|
|
|
`(#:make-flags `("CC=gcc"
|
|
|
|
,(string-append "INSTALL_PREFIX="
|
|
|
|
(assoc-ref %outputs "out")))
|
|
|
|
#:test-target "test"
|
|
|
|
#:phases
|
2017-04-12 16:28:40 -04:00
|
|
|
(modify-phases %standard-phases
|
2018-11-07 21:53:43 -05:00
|
|
|
(delete 'configure))))
|
2017-04-12 16:28:40 -04:00
|
|
|
(native-inputs
|
|
|
|
`(("python" ,python-2)))
|
2018-11-07 21:53:43 -05:00
|
|
|
(inputs
|
|
|
|
`(("lua" ,lua)))
|
2017-04-12 16:28:40 -04: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 16:30:07 -04:00
|
|
|
|
2018-04-06 15:25:19 -04:00
|
|
|
(define-public bear
|
|
|
|
(package
|
|
|
|
(name "bear")
|
2020-02-17 16:37:45 -05:00
|
|
|
(version "2.4.3")
|
2018-04-06 15:25:19 -04:00
|
|
|
(source (origin
|
2018-08-08 20:40:56 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/rizsotto/Bear")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2018-04-06 15:25:19 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2020-02-17 16:37:45 -05:00
|
|
|
"19fk4flfykbzhb89ppmzqf0zlrkbjm6ajl9fsayndj9km5ys0041"))))
|
2018-04-06 15:25:19 -04:00
|
|
|
(build-system cmake-build-system)
|
2018-05-15 08:10:11 -04:00
|
|
|
(inputs
|
|
|
|
`(("python" ,python-wrapper)))
|
2018-04-06 15:25:19 -04: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+)))
|
|
|
|
|
2018-09-12 07:45:34 -04:00
|
|
|
(define-public gn
|
2020-04-12 09:26:42 -04:00
|
|
|
(let ((commit "ec938ddaa276646eb8f1ab33e160c156011d8217")
|
|
|
|
(revision "1736")) ;as returned by `git describe`, used below
|
2018-09-12 07:45:34 -04: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-04-12 09:26:42 -04:00
|
|
|
"0j1qjwp2biw12s6npzpx4z8nvih7pyn68q6cz2k4700bk9y0d574"))
|
2018-09-12 07:45:34 -04:00
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2019-11-14 10:59:37 -05:00
|
|
|
`(#:phases (modify-phases %standard-phases
|
2018-09-12 07:45:34 -04:00
|
|
|
(add-before 'configure 'set-build-environment
|
|
|
|
(lambda _
|
|
|
|
(setenv "CC" "gcc") (setenv "CXX" "g++")
|
|
|
|
(setenv "AR" "ar")
|
|
|
|
#t))
|
|
|
|
(replace 'configure
|
|
|
|
(lambda _
|
2019-02-22 09:52:56 -05:00
|
|
|
(invoke "python" "build/gen.py"
|
2018-09-12 07:45:34 -04: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 09:26:42 -04:00
|
|
|
(string-append
|
|
|
|
"#define LAST_COMMIT_POSITION_NUM ~a\n"
|
|
|
|
"#define LAST_COMMIT_POSITION \"~a (~a)\"\n")
|
|
|
|
,revision ,revision ,(string-take commit 8))
|
2018-09-12 07:45:34 -04:00
|
|
|
#t))))
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(invoke "ninja" "-C" "out" "gn"
|
|
|
|
"-j" (number->string (parallel-job-count)))))
|
2019-11-14 10:59:37 -05:00
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key (tests? #t) #:allow-other-keys)
|
|
|
|
(if tests?
|
|
|
|
(lambda ()
|
|
|
|
(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 07:45:34 -04:00
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(install-file "out/gn" (string-append out "/bin"))
|
|
|
|
#t))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("ninja" ,ninja)
|
|
|
|
("python" ,python-2)))
|
|
|
|
(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 16:30:07 -04:00
|
|
|
(define-public meson
|
|
|
|
(package
|
|
|
|
(name "meson")
|
2020-02-29 13:28:53 -05:00
|
|
|
(version "0.53.2")
|
2017-04-19 16:30:07 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/mesonbuild/meson/"
|
2017-10-13 16:47:00 -04:00
|
|
|
"releases/download/" version "/meson-"
|
|
|
|
version ".tar.gz"))
|
2017-04-19 16:30:07 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2020-02-29 13:28:53 -05:00
|
|
|
"07y2hh9dfn1m9g4bsy49nbn3vdmd0b2iwr8bxg19fhqq6c7q73ry"))))
|
2017-04-19 16:30:07 -04:00
|
|
|
(build-system python-build-system)
|
2018-03-09 09:25:40 -05:00
|
|
|
(arguments
|
2018-03-09 09:29:19 -05:00
|
|
|
`(;; FIXME: Tests require many additional inputs, a fix for the RUNPATH
|
|
|
|
;; patch in meson-for-build, and patching many hard-coded file system
|
|
|
|
;; locations in "run_unittests.py".
|
|
|
|
#:tests? #f
|
|
|
|
#:phases (modify-phases %standard-phases
|
2018-03-09 09:25:40 -05:00
|
|
|
;; Meson calls the various executables in out/bin through the
|
|
|
|
;; Python interpreter, so we cannot use the shell wrapper.
|
|
|
|
(delete 'wrap))))
|
2018-03-16 11:50:14 -04:00
|
|
|
(inputs `(("ninja" ,ninja)))
|
2017-09-13 08:50:01 -04:00
|
|
|
(propagated-inputs `(("python" ,python)))
|
2017-04-19 16:30:07 -04:00
|
|
|
(home-page "https://mesonbuild.com/")
|
|
|
|
(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-06 19:31:27 -05:00
|
|
|
files}, are written in a custom domain-specific language (@dfn{DSL}) that
|
|
|
|
resembles Python.")
|
2017-04-19 16:30:07 -04:00
|
|
|
(license license:asl2.0)))
|
2017-07-14 06:04:15 -04:00
|
|
|
|
2017-09-13 08:50:02 -04:00
|
|
|
(define-public meson-for-build
|
|
|
|
(package
|
|
|
|
(inherit meson)
|
|
|
|
(name "meson-for-build")
|
|
|
|
(source (origin
|
2018-03-09 09:26:21 -05:00
|
|
|
(inherit (package-source meson))
|
2017-09-13 08:50:02 -04:00
|
|
|
(patches (search-patches "meson-for-build-rpath.patch"))))
|
|
|
|
|
|
|
|
;; People should probably install "meson", not "meson-for-build".
|
|
|
|
(properties `((hidden? . #t)))))
|
|
|
|
|
2017-07-14 06:04:15 -04: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
|
|
|
|
`(("unzip" ,unzip))) ; for unpacking the source
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags '("CC=gcc")
|
|
|
|
#: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 16:26:35 -04:00
|
|
|
|
2020-03-14 20:52:37 -04:00
|
|
|
(define-public premake5
|
|
|
|
(package
|
|
|
|
(inherit premake4)
|
|
|
|
(version "5.0.0-alpha14")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/premake/premake-core/"
|
|
|
|
"releases/download/v" version
|
|
|
|
"/premake-" version "-src.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0236s7bjvxf7x1l5faywmfzjywflpx42ngyhkn0mqqjnh54a97vw"))))
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments premake4)
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases ,phases
|
|
|
|
(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.")))
|
|
|
|
|
2018-04-17 16:26:35 -04:00
|
|
|
(define-public osc
|
|
|
|
(package
|
|
|
|
(name "osc")
|
2019-07-16 16:42:14 -04:00
|
|
|
(version "0.165.2")
|
2018-04-17 16:26:35 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2019-04-24 06:25:16 -04: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 16:26:35 -04:00
|
|
|
(sha256
|
2019-07-16 16:42:14 -04:00
|
|
|
(base32 "0yjwvbvv9fgkpiyvrag89zxchyn3nbgp9jz0wn5p0z9450zwfyz6"))))
|
2018-04-17 16:26:35 -04:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
2019-04-24 06:25:16 -04:00
|
|
|
`(#:phases
|
2018-04-17 16:26:35 -04:00
|
|
|
(modify-phases %standard-phases
|
2019-04-24 06:25:16 -04:00
|
|
|
(add-after 'install 'fix-filename
|
2018-04-17 16:26:35 -04: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 06:25:16 -04:00
|
|
|
#t))))))
|
2018-04-17 16:26:35 -04:00
|
|
|
(inputs
|
2019-04-24 06:25:16 -04:00
|
|
|
`(("python-m2crypto" ,python-m2crypto)
|
|
|
|
("python-pycurl" ,python-pycurl)
|
2019-06-06 12:42:48 -04:00
|
|
|
("rpm" ,rpm))) ; for python-rpm
|
2018-04-17 16:26:35 -04: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+)))
|