Commit | Line | Data |
---|---|---|
33f79a74 | 1 | ;;; GNU Guix --- Functional package management for GNU |
a3baaaa0 | 2 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
162dd290 | 3 | ;;; Copyright © 2017 Corentin Bocquillon <corentin@nybble.fr> |
da567fc8 | 4 | ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
71dab08d | 5 | ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> |
9a588402 | 6 | ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org> |
b7851222 | 7 | ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com> |
53367e17 | 8 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
b6d96be8 | 9 | ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org> |
41e09a15 | 10 | ;;; Copyright © 2019 Jonathan Brielmaier <jonathan.brielmaier@web.de> |
fcafee61 | 11 | ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at> |
6560c497 | 12 | ;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org> |
2c1d1b75 | 13 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> |
1f048676 | 14 | ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> |
ac11ef2f | 15 | ;;; Copyright © 2021 qblade <qblade@protonmail.com> |
f4259f93 | 16 | ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
33f79a74 RW |
17 | ;;; |
18 | ;;; This file is part of GNU Guix. | |
19 | ;;; | |
20 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
21 | ;;; under the terms of the GNU General Public License as published by | |
22 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
23 | ;;; your option) any later version. | |
24 | ;;; | |
25 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
26 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
27 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28 | ;;; GNU General Public License for more details. | |
29 | ;;; | |
30 | ;;; You should have received a copy of the GNU General Public License | |
31 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
32 | ||
33 | (define-module (gnu packages build-tools) | |
34 | #:use-module ((guix licenses) #:prefix license:) | |
35 | #:use-module (guix utils) | |
36 | #:use-module (guix packages) | |
37 | #:use-module (guix download) | |
f85af5ab | 38 | #:use-module (guix git-download) |
71dab08d | 39 | #:use-module (guix build-system cmake) |
33f79a74 | 40 | #:use-module (gnu packages) |
b6d96be8 | 41 | #:use-module (gnu packages adns) |
ac11ef2f | 42 | #:use-module (gnu packages base) |
43 | #:use-module (gnu packages bash) | |
6560c497 | 44 | #:use-module (gnu packages check) |
c97cef0a | 45 | #:use-module (gnu packages compression) |
b6d96be8 BG |
46 | #:use-module (gnu packages cpp) |
47 | #:use-module (gnu packages gcc) | |
2c1d1b75 | 48 | #:use-module (gnu packages linux) |
b6d96be8 | 49 | #:use-module (gnu packages logging) |
53367e17 | 50 | #:use-module (gnu packages lua) |
41e09a15 | 51 | #:use-module (gnu packages package-management) |
2c1d1b75 JK |
52 | #:use-module (gnu packages pcre) |
53 | #:use-module (gnu packages pkg-config) | |
b6d96be8 BG |
54 | #:use-module (gnu packages pretty-print) |
55 | #:use-module (gnu packages protobuf) | |
33f79a74 | 56 | #:use-module (gnu packages python) |
9a588402 TČ |
57 | #:use-module (gnu packages python-crypto) |
58 | #:use-module (gnu packages python-web) | |
6560c497 | 59 | #:use-module (gnu packages python-xyz) |
b6d96be8 BG |
60 | #:use-module (gnu packages regex) |
61 | #:use-module (gnu packages rpc) | |
2c1d1b75 | 62 | #:use-module (gnu packages sqlite) |
b6d96be8 | 63 | #:use-module (gnu packages tls) |
162dd290 CB |
64 | #:use-module (gnu packages ninja) |
65 | #:use-module (guix build-system gnu) | |
66 | #:use-module (guix build-system python)) | |
33f79a74 RW |
67 | |
68 | (define-public bam | |
69 | (package | |
70 | (name "bam") | |
53367e17 | 71 | (version "0.5.1") |
33f79a74 | 72 | (source (origin |
53367e17 AV |
73 | ;; do not use auto-generated tarballs |
74 | (method git-fetch) | |
75 | (uri (git-reference | |
b0e7b699 | 76 | (url "https://github.com/matricks/bam") |
53367e17 AV |
77 | (commit (string-append "v" version)))) |
78 | (file-name (git-file-name name version)) | |
33f79a74 RW |
79 | (sha256 |
80 | (base32 | |
53367e17 | 81 | "13br735ig7lygvzyfd15fc2rdygrqm503j6xj5xkrl1r7w2wipq6")))) |
33f79a74 RW |
82 | (build-system gnu-build-system) |
83 | (arguments | |
60587450 | 84 | `(#:make-flags `(,(string-append "CC=" ,(cc-for-target)) |
53367e17 AV |
85 | ,(string-append "INSTALL_PREFIX=" |
86 | (assoc-ref %outputs "out"))) | |
87 | #:test-target "test" | |
88 | #:phases | |
33f79a74 | 89 | (modify-phases %standard-phases |
53367e17 | 90 | (delete 'configure)))) |
33f79a74 RW |
91 | (native-inputs |
92 | `(("python" ,python-2))) | |
53367e17 AV |
93 | (inputs |
94 | `(("lua" ,lua))) | |
33f79a74 RW |
95 | (home-page "https://matricks.github.io/bam/") |
96 | (synopsis "Fast and flexible build system") | |
97 | (description "Bam is a fast and flexible build system. Bam uses Lua to | |
98 | describe the build process. It takes its inspiration for the script files | |
99 | from scons. While scons focuses on being 100% correct when building, bam | |
100 | makes a few sacrifices to acquire fast full and incremental build times.") | |
101 | (license license:bsd-3))) | |
162dd290 | 102 | |
71dab08d FT |
103 | (define-public bear |
104 | (package | |
105 | (name "bear") | |
b6d96be8 | 106 | (version "3.0.4") |
71dab08d | 107 | (source (origin |
f85af5ab TGR |
108 | (method git-fetch) |
109 | (uri (git-reference | |
110 | (url "https://github.com/rizsotto/Bear") | |
111 | (commit version))) | |
112 | (file-name (git-file-name name version)) | |
b6d96be8 BG |
113 | (patches (search-patches |
114 | "bear-disable-preinstall-tests.patch")) | |
71dab08d FT |
115 | (sha256 |
116 | (base32 | |
b6d96be8 | 117 | "15r22sbk5bibrhf54lf0shiqw1gnsik24fr5as96w3hnj6iahgwn")))) |
71dab08d | 118 | (build-system cmake-build-system) |
b6d96be8 BG |
119 | (arguments |
120 | `(#:phases (modify-phases %standard-phases | |
121 | (add-before 'check 'set-build-environment | |
122 | (lambda _ | |
123 | (setenv "CC" "gcc") | |
124 | #t)) | |
125 | ;; TODO: Test Configuration is Incomplete | |
126 | (replace 'check | |
127 | (lambda _ | |
128 | (invoke "ctest")))))) | |
73d85423 | 129 | (inputs |
b6d96be8 BG |
130 | `(("c-ares" ,c-ares) |
131 | ("fmt" ,fmt) | |
132 | ("grpc" ,grpc) | |
133 | ("json-modern-cxx" ,json-modern-cxx) | |
134 | ("protobuf" ,protobuf) | |
135 | ("python" ,python-wrapper) | |
136 | ("re2" ,re2) | |
137 | ("spdlog" ,spdlog))) | |
138 | (native-inputs | |
139 | `(("abseil-cpp" ,abseil-cpp) | |
140 | ("gcc-9" ,gcc-9) ; for <filesystem>, #44896 | |
141 | ("googletest" ,googletest) | |
142 | ("openssl" ,openssl) | |
143 | ("pkg-config" ,pkg-config) | |
144 | ("python-lit" ,python-lit) | |
145 | ("zlib" ,zlib))) | |
71dab08d FT |
146 | (home-page "https://github.com/rizsotto/Bear") |
147 | (synopsis "Tool for generating a compilation database") | |
148 | (description "A JSON compilation database is used in the Clang project to | |
149 | provide information on how a given compilation unit is processed. With this, | |
150 | it is easy to re-run the compilation with alternate programs. Bear is used to | |
151 | generate such a compilation database.") | |
152 | (license license:gpl3+))) | |
153 | ||
ac11ef2f | 154 | (define-public bmake |
155 | (package | |
156 | (name "bmake") | |
157 | (version "20210206") | |
158 | (source | |
159 | (origin | |
160 | (method url-fetch) | |
161 | (uri (string-append | |
162 | "http://www.crufty.net/ftp/pub/sjg/bmake-" version ".tar.gz")) | |
163 | (sha256 | |
164 | (base32 "07n9avzdg6gifrzyddnyzada5s5rzklvbqfpv5drljpxcgpqpvwg")))) | |
165 | (build-system gnu-build-system) | |
166 | (inputs | |
167 | `(("bash" ,bash-minimal))) | |
168 | (native-inputs | |
169 | `(("coreutils" ,coreutils))) | |
170 | (arguments | |
171 | `(#:tests? #f ; test during build | |
172 | #:phases | |
173 | (modify-phases %standard-phases | |
174 | (add-after 'configure 'fix-test ; fix from nixpkgs | |
175 | (lambda _ | |
176 | (substitute* "unit-tests/unexport-env.mk" | |
177 | (("PATH=\t/bin:/usr/bin:/sbin:/usr/sbin") | |
178 | "PATH := ${PATH}")))) | |
179 | (add-after 'configure 'remove-fail-tests | |
180 | (lambda _ | |
181 | (substitute* "unit-tests/Makefile" | |
182 | (("cmd-interrupt") "") | |
183 | (("varmod-localtime") "")) | |
184 | #t))) | |
185 | #:configure-flags | |
186 | (list | |
187 | (string-append | |
188 | "--with-defshell=" (assoc-ref %build-inputs "bash") "/bin/bash") | |
189 | (string-append | |
190 | "--with-default-sys-path=" (assoc-ref %outputs "out") "/share/mk")) | |
191 | #:make-flags | |
192 | (list "INSTALL=install"))) ;; use coreutils install | |
193 | (home-page "http://www.crufty.net/help/sjg/bmake.htm") | |
194 | (synopsis "BSD's make") | |
195 | (description | |
196 | "bmake is a program designed to simplify the maintenance of other | |
197 | programs. Its input is a list of specifications as to the files upon which | |
198 | programs and other files depend.") | |
199 | (license license:bsd-3))) | |
200 | ||
3ad0a358 | 201 | (define-public gn |
1c4cbeee MB |
202 | (let ((commit "e327ffdc503815916db2543ec000226a8df45163") |
203 | (revision "1819")) ;as returned by `git describe`, used below | |
3ad0a358 MB |
204 | (package |
205 | (name "gn") | |
206 | (version (git-version "0.0" revision commit)) | |
207 | (home-page "https://gn.googlesource.com/gn") | |
208 | (source (origin | |
209 | (method git-fetch) | |
210 | (uri (git-reference (url home-page) (commit commit))) | |
211 | (sha256 | |
212 | (base32 | |
1c4cbeee | 213 | "0kvlfj3www84zp1vmxh76x8fdjm9hyk8lkh2vdsidafpmm75fphr")) |
3ad0a358 MB |
214 | (file-name (git-file-name name version)))) |
215 | (build-system gnu-build-system) | |
216 | (arguments | |
97b672d9 | 217 | `(#:phases (modify-phases %standard-phases |
3ad0a358 MB |
218 | (add-before 'configure 'set-build-environment |
219 | (lambda _ | |
220 | (setenv "CC" "gcc") (setenv "CXX" "g++") | |
221 | (setenv "AR" "ar") | |
222 | #t)) | |
223 | (replace 'configure | |
224 | (lambda _ | |
ebee2f47 | 225 | (invoke "python" "build/gen.py" |
3ad0a358 MB |
226 | "--no-last-commit-position"))) |
227 | (add-after 'configure 'create-last-commit-position | |
228 | (lambda _ | |
229 | ;; Create "last_commit_position.h" to avoid a dependency | |
230 | ;; on 'git' (and the checkout..). | |
231 | (call-with-output-file "out/last_commit_position.h" | |
232 | (lambda (port) | |
233 | (format port | |
b7851222 MB |
234 | (string-append |
235 | "#define LAST_COMMIT_POSITION_NUM ~a\n" | |
236 | "#define LAST_COMMIT_POSITION \"~a (~a)\"\n") | |
237 | ,revision ,revision ,(string-take commit 8)) | |
3ad0a358 MB |
238 | #t)))) |
239 | (replace 'build | |
240 | (lambda _ | |
241 | (invoke "ninja" "-C" "out" "gn" | |
242 | "-j" (number->string (parallel-job-count))))) | |
97b672d9 MB |
243 | (replace 'check |
244 | (lambda* (#:key (tests? #t) #:allow-other-keys) | |
245 | (if tests? | |
246 | (lambda () | |
247 | (invoke "ninja" "-C" "out" "gn_unittests" | |
248 | "-j" (number->string (parallel-job-count))) | |
249 | (invoke "./out/gn_unittests")) | |
250 | (format #t "test suite not run~%")))) | |
3ad0a358 MB |
251 | (replace 'install |
252 | (lambda* (#:key outputs #:allow-other-keys) | |
253 | (let ((out (assoc-ref outputs "out"))) | |
254 | (install-file "out/gn" (string-append out "/bin")) | |
255 | #t)))))) | |
256 | (native-inputs | |
257 | `(("ninja" ,ninja) | |
258 | ("python" ,python-2))) | |
259 | (synopsis "Generate Ninja build files") | |
260 | (description | |
261 | "GN is a tool that collects information about a project from @file{.gn} | |
262 | files and generates build instructions for the Ninja build system.") | |
263 | ;; GN is distributed as BSD-3, but bundles some files from ICU using the | |
264 | ;; X11 license. | |
265 | (license (list license:bsd-3 license:x11))))) | |
266 | ||
162dd290 CB |
267 | (define-public meson |
268 | (package | |
269 | (name "meson") | |
275f8749 | 270 | (version "0.53.2") |
162dd290 CB |
271 | (source (origin |
272 | (method url-fetch) | |
273 | (uri (string-append "https://github.com/mesonbuild/meson/" | |
a47ed096 RW |
274 | "releases/download/" version "/meson-" |
275 | version ".tar.gz")) | |
162dd290 CB |
276 | (sha256 |
277 | (base32 | |
275f8749 | 278 | "07y2hh9dfn1m9g4bsy49nbn3vdmd0b2iwr8bxg19fhqq6c7q73ry")))) |
162dd290 | 279 | (build-system python-build-system) |
b14a04b2 | 280 | (arguments |
3f6c185e MB |
281 | `(;; FIXME: Tests require many additional inputs, a fix for the RUNPATH |
282 | ;; patch in meson-for-build, and patching many hard-coded file system | |
283 | ;; locations in "run_unittests.py". | |
284 | #:tests? #f | |
285 | #:phases (modify-phases %standard-phases | |
b14a04b2 MB |
286 | ;; Meson calls the various executables in out/bin through the |
287 | ;; Python interpreter, so we cannot use the shell wrapper. | |
288 | (delete 'wrap)))) | |
c695fb76 | 289 | (inputs `(("ninja" ,ninja))) |
67f8ba11 | 290 | (propagated-inputs `(("python" ,python))) |
162dd290 CB |
291 | (home-page "https://mesonbuild.com/") |
292 | (synopsis "Build system designed to be fast and user-friendly") | |
293 | (description | |
294 | "The Meson build system is focused on user-friendliness and speed. | |
295 | It can compile code written in C, C++, Fortran, Java, Rust, and other | |
296 | languages. Meson provides features comparable to those of the | |
297 | Autoconf/Automake/make combo. Build specifications, also known as @dfn{Meson | |
6c4da3b7 TGR |
298 | files}, are written in a custom domain-specific language (@dfn{DSL}) that |
299 | resembles Python.") | |
162dd290 | 300 | (license license:asl2.0))) |
c97cef0a | 301 | |
ae286b58 AT |
302 | ;; Added temporarily for packages that need it. |
303 | ;; TODO: Remove when core-updates is merged. | |
304 | (define-public meson-0.55 | |
305 | (package | |
306 | (inherit meson) | |
307 | (version "0.55.1") | |
308 | (source (origin | |
309 | (method url-fetch) | |
310 | (uri (string-append "https://github.com/mesonbuild/meson/" | |
311 | "releases/download/" version "/meson-" | |
312 | version ".tar.gz")) | |
313 | (sha256 | |
314 | (base32 | |
315 | "1070kjiirxxdfppmrhi3wsc6rykay1zlciqrzayjhjg0hkw42mrv")))))) | |
316 | ||
f4259f93 MC |
317 | (define-public meson-next |
318 | (package | |
319 | (inherit meson) | |
166aaea3 | 320 | (version "0.57.2") |
f4259f93 MC |
321 | (source (origin |
322 | (method url-fetch) | |
323 | (uri (string-append "https://github.com/mesonbuild/meson/" | |
324 | "releases/download/" version "/meson-" | |
325 | version ".tar.gz")) | |
326 | (sha256 | |
327 | (base32 | |
166aaea3 | 328 | "1iac7p99zfgkznq4qlnkk7b8xwwlilcrnkf33sczm56yqnqyg0rs")))))) |
f4259f93 | 329 | |
dab666cd PM |
330 | (define-public meson-for-build |
331 | (package | |
332 | (inherit meson) | |
333 | (name "meson-for-build") | |
dab666cd | 334 | (source (origin |
d3155863 | 335 | (inherit (package-source meson)) |
dab666cd PM |
336 | (patches (search-patches "meson-for-build-rpath.patch")))) |
337 | ||
338 | ;; People should probably install "meson", not "meson-for-build". | |
339 | (properties `((hidden? . #t))))) | |
340 | ||
c97cef0a OP |
341 | (define-public premake4 |
342 | (package | |
343 | (name "premake") | |
344 | (version "4.3") | |
345 | (source (origin | |
346 | (method url-fetch) | |
347 | (uri (string-append "mirror://sourceforge/premake/Premake/" | |
348 | version "/premake-" version "-src.zip")) | |
349 | (sha256 | |
350 | (base32 | |
351 | "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn")))) | |
352 | (build-system gnu-build-system) | |
353 | (native-inputs | |
354 | `(("unzip" ,unzip))) ; for unpacking the source | |
355 | (arguments | |
1f048676 | 356 | `(#:make-flags (list (string-append "CC=" ,(cc-for-target))) |
c97cef0a OP |
357 | #:tests? #f ; No test suite |
358 | #:phases | |
359 | (modify-phases %standard-phases | |
360 | (delete 'configure) | |
361 | (add-after 'unpack 'enter-source | |
362 | (lambda _ (chdir "build/gmake.unix") #t)) | |
363 | (replace 'install | |
364 | (lambda* (#:key outputs #:allow-other-keys) | |
365 | (install-file "../../bin/release/premake4" | |
366 | (string-append (assoc-ref outputs "out") "/bin")) | |
367 | #t))))) | |
368 | (synopsis "Portable software build tool") | |
369 | (description "@code{premake4} is a command line utility that reads a | |
370 | scripted definition of a software project and outputs @file{Makefile}s or | |
371 | other lower-level build files.") | |
372 | (home-page "https://premake.github.io") | |
373 | (license license:bsd-3))) | |
9a588402 | 374 | |
fcafee61 LP |
375 | (define-public premake5 |
376 | (package | |
377 | (inherit premake4) | |
7c475372 | 378 | (version "5.0.0-alpha15") |
fcafee61 LP |
379 | (source (origin |
380 | (method url-fetch) | |
381 | (uri (string-append "https://github.com/premake/premake-core/" | |
382 | "releases/download/v" version | |
383 | "/premake-" version "-src.zip")) | |
384 | (sha256 | |
385 | (base32 | |
7c475372 | 386 | "0lyxfyqxyhjqsb3kmx1fyrxinb26i68hb7w7rg8lajczrgkmc3w8")))) |
fcafee61 LP |
387 | (arguments |
388 | (substitute-keyword-arguments (package-arguments premake4) | |
389 | ((#:phases phases) | |
390 | `(modify-phases ,phases | |
7c475372 TGR |
391 | (replace 'enter-source |
392 | (lambda _ (chdir "build/gmake2.unix") #t)) | |
fcafee61 LP |
393 | (replace 'install |
394 | (lambda* (#:key outputs #:allow-other-keys) | |
395 | (install-file "../../bin/release/premake5" | |
396 | (string-append (assoc-ref outputs "out") "/bin")) | |
397 | #t)))))) | |
398 | (description "@code{premake5} is a command line utility that reads a | |
399 | scripted definition of a software project and outputs @file{Makefile}s or | |
400 | other lower-level build files."))) | |
401 | ||
2c1d1b75 JK |
402 | (define-public tup |
403 | (package | |
404 | (name "tup") | |
0f99da2b | 405 | (version "0.7.9") |
2c1d1b75 JK |
406 | (source (origin |
407 | (method url-fetch) | |
408 | (uri (string-append "http://gittup.org/tup/releases/tup-v" | |
409 | version ".tar.gz")) | |
410 | (sha256 | |
411 | (base32 | |
0f99da2b | 412 | "0gnd2598xqgwihdkfkx7qn0q6p4n7npam1fy83mp7s04zwj99syc")) |
2c1d1b75 JK |
413 | (patches (search-patches "tup-unbundle-dependencies.patch")) |
414 | (modules '((guix build utils))) | |
415 | (snippet | |
416 | '(begin | |
417 | ;; NOTE: Tup uses a slightly modified Lua, so it cannot be | |
418 | ;; unbundled. See: src/lula/tup-lua.patch | |
419 | (delete-file-recursively "src/pcre") | |
420 | (delete-file-recursively "src/sqlite3") | |
421 | #t)))) | |
422 | (build-system gnu-build-system) | |
423 | (arguments | |
424 | `(#:phases | |
425 | (modify-phases %standard-phases | |
426 | ;; There is a bootstrap script, but it doesn't do what you think - it | |
427 | ;; builds tup. | |
428 | (delete 'bootstrap) | |
429 | (replace 'configure | |
430 | (lambda _ | |
431 | (substitute* "src/tup/link.sh" | |
432 | (("`git describe`") ,version)) | |
433 | (with-output-to-file "tup.config" | |
434 | (lambda _ | |
435 | (format #t "CONFIG_TUP_USE_SYSTEM_SQLITE=y~%"))) | |
436 | #t)) | |
437 | (delete 'check) | |
438 | (replace 'build | |
439 | (lambda _ | |
440 | ;; Based on bootstrap-nofuse.sh, but with a detour to patch-shebang. | |
441 | (invoke "./build.sh") | |
442 | (invoke "./build/tup" "init") | |
443 | (invoke "./build/tup" "generate" "--verbose" "build-nofuse.sh") | |
444 | (patch-shebang "build-nofuse.sh") | |
445 | (invoke "./build-nofuse.sh"))) | |
446 | (replace 'install | |
447 | (lambda* (#:key outputs #:allow-other-keys) | |
448 | (let* ((outdir (assoc-ref outputs "out")) | |
449 | (ftdetect (string-append outdir | |
450 | "/share/vim/vimfiles/ftdetect"))) | |
451 | (install-file "tup" (string-append outdir "/bin")) | |
452 | (install-file "tup.1" (string-append outdir "/share/man/man1")) | |
453 | (install-file "contrib/syntax/tup.vim" | |
454 | (string-append outdir "/share/vim/vimfiles/syntax")) | |
455 | (mkdir-p ftdetect) | |
456 | (with-output-to-file (string-append ftdetect "/tup.vim") | |
457 | (lambda _ | |
458 | (display "au BufNewFile,BufRead Tupfile,*.tup setf tup"))) | |
459 | #t)))))) | |
460 | (inputs | |
461 | `(("fuse" ,fuse) | |
462 | ("pcre" ,pcre) | |
463 | ("pcre" ,pcre "bin") ; pcre-config | |
464 | ("sqlite" ,sqlite))) | |
465 | (native-inputs | |
466 | `(("pkg-config" ,pkg-config))) | |
467 | (home-page "http://gittup.org/tup/") | |
468 | (synopsis "Fast build system that's hard to get wrong") | |
469 | (description "Tup is a generic build system based on a directed acyclic | |
470 | graphs of commands to be executed. Tup instruments your build to detect the | |
471 | exact dependencies of the commands, allowing you to take advantage of ideal | |
472 | parallelism during incremental builds, and detecting any situations where | |
473 | a build worked by accident.") | |
474 | (license license:gpl2))) | |
475 | ||
9a588402 TČ |
476 | (define-public osc |
477 | (package | |
478 | (name "osc") | |
ca15eaeb | 479 | (version "0.172.0") |
9a588402 TČ |
480 | (source |
481 | (origin | |
41e09a15 JB |
482 | (method git-fetch) |
483 | (uri (git-reference | |
484 | (url "https://github.com/openSUSE/osc") | |
485 | (commit version))) | |
486 | (file-name (git-file-name name version)) | |
9a588402 | 487 | (sha256 |
ca15eaeb | 488 | (base32 "1sqdnkka3c6b6hwnrmlwrgy7w62cp8raq8mph9pgd2lydzzbvwlp")))) |
9a588402 TČ |
489 | (build-system python-build-system) |
490 | (arguments | |
41e09a15 | 491 | `(#:phases |
9a588402 | 492 | (modify-phases %standard-phases |
41e09a15 | 493 | (add-after 'install 'fix-filename |
9a588402 TČ |
494 | (lambda* (#:key outputs #:allow-other-keys) |
495 | (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) | |
496 | ;; Main osc tool is renamed in spec file, not setup.py, let's | |
497 | ;; do that too. | |
498 | (rename-file | |
499 | (string-append bin "osc-wrapper.py") | |
500 | (string-append bin "osc")) | |
41e09a15 | 501 | #t)))))) |
ca15eaeb LLB |
502 | (native-inputs |
503 | `(("python-chardet" ,python-chardet))) | |
9a588402 | 504 | (inputs |
41e09a15 JB |
505 | `(("python-m2crypto" ,python-m2crypto) |
506 | ("python-pycurl" ,python-pycurl) | |
52bbf5f7 | 507 | ("rpm" ,rpm))) ; for python-rpm |
9a588402 TČ |
508 | (home-page "https://github.com/openSUSE/osc") |
509 | (synopsis "Open Build Service command line tool") | |
510 | (description "@command{osc} is a command line interface to the Open Build | |
511 | Service. It allows you to checkout, commit, perform reviews etc. The vast | |
512 | majority of the OBS functionality is available via commands and the rest can | |
513 | be reached via direct API calls.") | |
514 | (license license:gpl2+))) | |
6560c497 YK |
515 | |
516 | (define-public compiledb | |
517 | (package | |
518 | (name "compiledb") | |
519 | (version "0.10.1") | |
520 | (source | |
521 | (origin | |
522 | (method url-fetch) | |
523 | (uri (pypi-uri "compiledb" version)) | |
524 | (sha256 | |
525 | (base32 "0vlngsdxfakyl8b7rnvn8h3l216lhbrrydr04yhy6kd03zflgfq6")))) | |
526 | (build-system python-build-system) | |
527 | (arguments | |
528 | `(#:phases | |
529 | (modify-phases %standard-phases | |
530 | (add-after 'unpack 'no-compat-shim-dependency | |
531 | ;; shutilwhich is only needed for python 3.3 and earlier | |
532 | (lambda _ | |
533 | (substitute* "setup.py" (("^ *'shutilwhich'\n") "")) | |
534 | (substitute* "compiledb/compiler.py" (("shutilwhich") "shutil"))))))) | |
535 | (propagated-inputs | |
536 | `(("python-bashlex" ,python-bashlex) | |
537 | ("python-click" ,python-click))) | |
538 | (native-inputs | |
539 | `(("python-pytest" ,python-pytest))) | |
540 | (home-page | |
541 | "https://github.com/nickdiego/compiledb") | |
542 | (synopsis | |
543 | "Generate Clang JSON Compilation Database files for make-based build systems") | |
544 | (description | |
545 | "@code{compiledb} provides a @code{make} python wrapper script which, | |
546 | besides executing the make build command, updates the JSON compilation | |
547 | database file corresponding to that build, resulting in a command-line | |
548 | interface similar to Bear.") | |
549 | (license license:gpl3))) | |
65719505 MC |
550 | |
551 | (define-public build | |
552 | (package | |
553 | (name "build") | |
554 | (version "0.3.10") | |
555 | (source | |
556 | (origin | |
557 | (method url-fetch) | |
558 | (uri (string-append "https://www.codesynthesis.com/download/" | |
559 | "build/" (version-major+minor version) | |
560 | "/build-" version ".tar.bz2")) | |
561 | (sha256 | |
562 | (base32 "1lx5rpnmsbip43zpp0a57sl5rm7pjb0y6i2si6rfglfp4p9d3z76")))) | |
563 | (build-system gnu-build-system) | |
564 | (arguments | |
565 | `(#:make-flags (list (string-append "install_prefix=" %output)) | |
566 | #:tests? #f | |
567 | #:phases (modify-phases %standard-phases | |
568 | (delete 'build) | |
569 | (delete 'configure)))) | |
570 | (home-page "https://www.codesynthesis.com/projects/build/") | |
571 | (synopsis "Massively-parallel build system implemented on top of GNU make") | |
572 | (description "Build is a massively-parallel software build system | |
573 | implemented on top of GNU Make, designed with the following tasks in mind: | |
574 | @itemize | |
575 | @item configuration | |
576 | @item building | |
577 | @item testing | |
578 | @item installation | |
579 | @end itemize | |
580 | Build has features such as: | |
581 | @itemize | |
582 | @item Position-independent makefiles. | |
583 | @item Non-recursive multi-makefile include-based structure. | |
584 | @item Leaf makefiles are full-fledged GNU makefiles, not just variable definitions. | |
585 | @item Complete dependency graph. | |
586 | @item Inter-project dependency tracking. | |
587 | @item Extensible language/compiler framework. | |
588 | @end itemize") | |
589 | (license license:gpl2+))) |