aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-build-branch.sh
blob: 2d3b115e78973811aabd674039b56906855e4212 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# GNU Guix --- Functional package management for GNU
# Copyright © 2018, 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org>
#
# 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/>.

#
# Test 'guix build --with-branch'.
#

guix build --version

# 'guix build --with-branch' requires access to the network to clone the
# Git repository below.

if ! guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null
then
    # Skipping.
    exit 77
fi

orig_drv="`guix build guile-gcrypt -d`"
latest_drv="`guix build guile-gcrypt --with-branch=guile-gcrypt=master -d`"
test -n "$latest_drv"
test "$orig_drv" != "$latest_drv"

# FIXME: '-S' currently doesn't work with non-derivation source.
# checkout="`guix build guile-gcrypt --with-branch=guile-gcrypt=master -S`"
checkout="`guix gc --references "$latest_drv" | grep guile-gcrypt | grep -v -E '(-builder|\.drv)'`"
test -d "$checkout"
test -f "$checkout/COPYING"

orig_drv="`guix build guix -d`"
latest_drv="`guix build guix --with-branch=guile-gcrypt=master -d`"
guix gc -R "$latest_drv" | grep guile-gcrypt-git.master
test "$orig_drv" != "$latest_drv"

v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=9e3eacdec1d -d`"
guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-git.9e3eacd
test "$v0_1_0_drv" != "$latest_drv"
test "$v0_1_0_drv" != "$orig_drv"

v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=v0.1.0 -d`"
guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-0.1.0
guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-9e3eacd
test "$v0_1_0_drv" != "$latest_drv"
test "$v0_1_0_drv" != "$orig_drv"

guix build guix --with-commit=guile-gcrypt=000 -d && false

exit 0
iable. Signed-off-by: Jaeme Sifat <jaeme@runbox.com> Change-Id: I0069bbbc8de55a030a52ef98b0f8d9dd0fe07317 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Jaeme Sifat 2023-11-28gnu: zoxide: Remove old rust version workaround....* gnu/packages/rust-apss.scm (zoxide)[arguments]: Remove custom phases. Change-Id: I11ee4cc8376c7b825359816dea4053dff18531a8 Efraim Flashner 2023-11-28gnu: rust-analyzer: Move to rust.scm....* gnu/packages/rust-apps.scm (rust-analyzer): Move ... * gnu/packages/rust.scm (rust-analyzer): ... to here. Change-Id: I24db3731370f6e798b919409a32abec4a115c913 Efraim Flashner 2023-11-28gnu: Remove rust-cbindgen-0.19....* gnu/packages/crates-io.scm (rust-cbindgen-0.19): Remove variable. Change-Id: Ied77d309fe8568e666312fd2f9b1ce8113fba6dc Efraim Flashner 2023-11-28gnu: tectonic: Update package....* gnu/packages/rust-apps.scm (tectonic)[arguments]: Remove cargo-build-flags. Don't install the sources. Change-Id: I368fdbee3da7b1747620d507f2ae72bf768c441b Efraim Flashner 2023-11-28gnu: Remove rust-cbindgen-0.16....* gnu/packages/rust-apps.scm (rust-cbindgen-0.16): Remove variable. Change-Id: Id37fbf2df893978eba7f8abeb0bc9443ffe94a0a Efraim Flashner 2023-11-28gnu: rust-analyzer: Replace with version from rust....* gnu/packages/rust-apps.scm (rust-analyzer): Rewrite package to contain the rust-analyzer from the rust package. Change-Id: I36a15e444fda76f044323f97ebce08f562063d4b Efraim Flashner 2023-11-28gnu: alfis: Update to 0.8.4....* gnu/packages/rust-apps.scm (alfis): Update to 0.8.4. [source]: Add snippet to use packaged versions of dependencies. [cargo-inputs]: Add rust-spmc-0.3, rust-winapi-0.3. Replace rust-simplelog-0.11 with 0.12, rust-toml-0.5 with 0.7, rust-signature-1 with 2, rust-base64-0.13 with 0.21, rust-sqlite-0.26 with 0.30, rust-uuid-0.8 with 1, rust-lru-0.7 with 0.9, rust-open-2 with 3, rust-thread-priority-0.4 with 0.10. [inputs]: Add sqlite Efraim Flashner 2023-11-28gnu: rust-xremap: Remove older dependencies workaround....* gnu/packages/rust-apps.scm (rust-xremap)[source]: Remove snippet. Change-Id: If67c214293f60c8dd1a36cf9552abf7861d370f3 Efraim Flashner 2023-11-28gnu: rust-cargo-c: Update to 0.9.27....* gnu/packages/rust-apps.scm (rust-cargo-c): Update to 0.9.27. [cargo-inputs]: Add rust-windows-sys-0.48. Replace rust-cargo-0.69 with 0.74, rust-cbindgen-0.24 with 0.26, rust-itertools-0.10 with 0.11. [inputs]: Replace libgit2 with libgit2-1.6. Change-Id: Id697dd15d444fab60c55647c87d4d6689d69148b Efraim Flashner 2023-11-08gnu: Have vim packages use vim-build-system....* gnu/packages/vim.scm (vim-neocomplete, vim-neocomplete-snippets, vim-neosnippet, vim-scheme, vim-luna, vim-fugitive, vim-airline, vim-airline-themes, vim-syntastic, neovim-syntastic, vim-solarized, vim-rainbow, editorconfig-vim, neovim-packer, vim-guix-vim, vim-asyncrun, vim-dispatch, vim-gemini-vim, vim-eunuch, vim-slime, vim-vlime, vim-paredit, vim-surround, vim-gnupg, vim-ctrlp, vim-mucomplete, vim-gitgutter, vim-characterize, vim-tagbar, vim-nerdtree, vim-nerdcommander): [build-system]: Switch to vim-build-system. [arguments]: Adjust accordingly. * gnu/packages/code.scm (global)[arguments]: Move vim files to their new location. * gnu/packages/lisp.scm (txr), * gnu/packages/mail.scm (msmtp), * gnu/packages/rust-apps.scm (skim), * gnu/packages/vim.scm (vifm), * gnu/packages/wm.scm (fluxbox): Same. Co-authored-by: Efraim Flashner <efraim@flashner.co.il> Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I8b3e5d65d76a100c3dbddc1ae562b72966c2b304 Jonathan Scoresby 2023-10-26gnu: Add rust-cbindgen-0.26....* gnu/packages/rust-apps.scm (rust-cbindgen-0.26): New variable. (rust-cbindgen-0.24): Inherit from rust-cbindgen-0.26. Change-Id: Id17f8e251ceecc8ae0708dcfc19acfc5c56b824f Signed-off-by: John Kehayias <john.kehayias@protonmail.com> Tomas Volf 2023-10-22gnu: Add xremap-gnome....* gnu/packages/rust-apps.scm (xremap-gnome): New variable. Efraim Flashner 2023-10-22gnu: Add xremap-x11....* gnu/packages/rust-apps.scm (xremap-x11): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Aleksandr Vityazev 2023-10-22gnu: Add xremap-sway....* gnu/packages/rust-apps.scm (xremap-sway): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Aleksandr Vityazev 2023-10-22gnu: Add xremap-wlroots....* gnu/packages/rust-apps.scm (xremap-wlroots): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Aleksandr Vityazev 2023-10-22gnu: rust-xremap: Install shell completions....* gnu/packages/rust-apps.scm (rust-xremap)[arguments]: Add a phase to install the shell completions. Efraim Flashner 2023-10-22gnu: Add rust-xremap....* gnu/packages/rust-apps.scm (rust-xremap): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Aleksandr Vityazev 2023-10-18Revert "build: cargo-build-system: Disable tests by default."...This reverts commit 37667443074a6de29f7665868f102111d62f0af9. This change needs more discussion. Efraim Flashner 2023-10-18build: cargo-build-system: Disable tests by default....* guix/build-system/cargo.scm (cargo-build): Disable tests by default. * gnu/packages/admin.scm (greetd, wlgreet, du-dust), * gnu/packages/bioinformatics.scm (circtools, python-gseapy), * gnu/packages/crypto.scm (rust-minisign, b3sum), * gnu/packages/gnome.scm (librsvg), * gnu/packages/python-crypto.scm (python-blake3, python-cryptography-rust), * gnu/packages/python-xyz.scm (python-orjson), * gnu/packages/rust-apps.scm (agate, alfis, bat, diffr, drill, dutree, exa, fd, hexyl, hyperfine, i3status-rust, just, maturin, ripgrep, rot8, rust-swc, rust-cargo-edit, git-interactive-rebase-tool, rust-cbindgen, rust-cbindgen-0.24, rust-cbindgen-0.19, sniffglue, tectonic, treefmt, hex, tokei, vivid, watchexec, rbw, rust-analyzer, rust-cargo-c, rtss, skim, skim-0.7, svd2rust, swayhide, tealdeer, git-absorb, zoxide, htmlq), * gnu/packages/sequoia.scm (sequoia-sqv), * gnu/packages/syndication.scm (newsboat), * gnu/packages/terminals.scm (alacritty), * gnu/packages/text-editors.scm (kak-lsp, parinfer-rust), * gnu/packages/tree-sitter.scm (tree-sitter-cli), * gnu/packages/video.scm (rav1e), * gnu/packages/web.scm (monolith, castor) [arguments]: Enable tests. Efraim Flashner 2023-10-18gnu: rust-oorandom-11: Rename from rust-oorandom-11.1....* gnu/packages/crates-io.scm (rust-oorandom-11): Use new name. (rust-criterion-0.5, rust-criterion-0.4, rust-criterion-0.3, rust-salsa-0.17): Use new name. * gnu/packages/rust-apps.scm (rust-analyzer): Same. Efraim Flashner 2023-10-18gnu: rust-swc: Update to 1.2.124....* gnu/packages/rust-apps.scm (rust-swc): Update to 1.2.124. [source]: Add snippet to not hardcode dependency versions. [arguments]: Don't install package source. Don't skip tests. Add cargo-build-flags and cargo-test-flags to only build the swc_cli binary. Remove custom 'enable-unstable-phases, 'patch-build-failures phases. Use custom 'install phase. [cargo-inputs]: Add rust-abi-stable-0.10, rust-ahash-0.7, rust-ansi-term-0.12, rust-anyhow-1, rust-arrayvec-0.5, rust-arbitrary-1, rust-auto-impl-0.5, rust-auto-impl-0.4, rust-backtrace-0.3, rust-bincode-1, rust-bitflags-1, rust-browserslist-0.6, rust-cfg-if-0.1, rust-copyless-0.1, rust-debug-unreachable-0.1, rust-difference-2, rust-glob-0.3, rust-hex-0.4, rust-indexmap-1, rust-inflector-0.11, rust-lexical-5, rust-libloading-0.7, rust-lru-0.7, rust-mimalloc-rust-0.1, rust-normpath-0.2, rust-num-bigint-0.2, rust-owning-ref-0.4, rust-parking-lot-0.11, rust-parking-lot-core-0.8, rust-paw-0.8, rust-pmutil-0.5, rust-pretty-assertions-0.7, rust-pretty-assertions-0.6, rust-quote-1, rust-rayon-1, rust-rustc-hash-1, rust-semver-0.9, rust-serde-1, rust-serde-json-1, rust-serde-regex-1, rust-sha-1-0.9, rust-smallvec-1, rust-sourcemap-6, rust-string-cache-codegen-0.5, rust-structopt-0.3, rust-syn-1, rust-termcolor-1, rust-tracing-0.1, rust-tracing-subscriber-0.3, rust-typed-arena-2, rust-wasm-bindgen-0.2, rust-wasm-bindgen-futures-0.4, rust-unicode-width-0.1, rust-unicode-xid-0.2, rust-url-2. Replace rust-dashmap-3 with 4, rust-napi-0.5 with 2, rust-napi-build-0.2 with 1, rust-napi-derive-0.5 with 2, rust-ordered-float-1 with 2. Remove rust-fxhash-0.2, rust-jemallocator-0.3, rust-log-0.4, rust-mimalloc-0.1. [cargo-development-inputs]: Add rust-ansi-term-0.12, rust-dashmap-4, rust-hex-0.4, rust-ntest-0.7, rust-path-clean-0.1, rust-pretty-assertions-0.7, rust-reqwest-0.11, rust-sha-1-0.9, rust-url-2, rust-walkdir-2. Remove rust-num-bigint-0.2, rust-pretty-env-logger-0.3, rust-string-cache-codegen-0.5, rust-tempfile-3. Efraim Flashner 2023-10-16gnu: Add xsv....* gnu/packages/crates-io.scm (xsv): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Wilko Meyer 2023-10-12gnu: ripgrep: Prepare for cross-compiling....* gnu/packages/rust-apps.scm (ripgrep) [native-inputs]: Move pcre2 ... [inputs]: ... to here. Efraim Flashner 2023-09-28gnu: just: Install shell completions....* gnu/packages/rust-apps.scm (just)[arguments]: Add a phase to install the shell completions. Efraim Flashner 2023-09-28gnu: just: Install manpage....* gnu/packages/rust-apps.scm (just)[arguments]: Add phase to install manpage. Efraim Flashner 2023-09-28gnu: Add just....* gnu/packages/rust-apps.scm (just): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Andrew Jose 2023-09-09gnu: rust-analyzer: Update required dependencies version....Use pinned versions of different dependencies required by rust-analyzer@2022-01-10. * gnu/packages/crates-io.scm (rust-salsa-0.17): Require RUST-INDEXMAP-1.7. (rust-serde-path-to-error-0.1): Require RUST-SERDE-JSON-1.0.73. (rust-serde-repr-0.1): Require RUST-QUOTE-1.0.10, RUST-PROC-MACRO2-1.0.34, RUST-SERDE-JSON-1.0.73, RUST-TRYBUILD-1.0.19. * gnu/packages/rust-apps.scm (rust-analyzer): Adjust versions similarly. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Distopico 2023-09-09gnu: rust-analyzer: Fix build of version 2022-01-10....* gnu/packages/rust-apps.scm (rust-analyzer): Update dependency rust-notify-5-pre.13. This fixes the build of `rust-analyzer@2022-01-10`, which required a pinned version of `rust-notify` (`rust-notify-5-pre.13`) to compile and rust >= 1.64. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Distopico 2023-08-14gnu: Add maturin....* gnu/packages/rust-apps.scm (maturin): New variable. * gnu/packages/patches/maturin-no-cross-compile.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Efraim Flashner 2023-08-14gnu: fd: Adjust for newer rust-clap-4....* gnu/packages/rust-apps.scm (fd)[arguments]: Add a phase to remove a feature-flag which was removed from the dependant project. Efraim Flashner 2023-08-14gnu: Remove rust-cbindgen-0.20....* gnu/packages/rust-apps.scm (rust-cbindgen-0.20): Delete variable. Efraim Flashner 2023-08-14gnu: Remove rust-cbindgen-0.17....* gnu/packages/rust-apps.scm (rust-cbindgen-0.17): Delete variable. Efraim Flashner 2023-08-14gnu: Remove rust-cbindgen-0.15....* gnu/packages/rust-apps.scm (rust-cbindgen-0.15): Delete variable. Efraim Flashner 2023-08-14gnu: Remove rust-cbindgen-0.14....* gnu/packages/rust-apps.scm (rust-cbindgen-0.14): Delete variable. Efraim Flashner 2023-08-14gnu: Remove rust-cbindgen-0.12....* gnu/packages/rust-apps.scm (rust-cbindgen-0.12): Delete variable. Efraim Flashner 2023-08-14gnu: rust-cargo-c: Update to 0.9.18....* gnu/packages/rust-apps.scm (rust-cargo-c): Update to 0.9.18. [cargo-inputs]: Replace rust-cargo-0.68 with 0.69, rust-toml-0.6 with 0.7. Efraim Flashner