idris2

maintainer mb64 · 8 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a tarball from the project's official domain (idris-lang.org), which is plausibly the project's own release infrastructure; building from this source is normal AUR packaging practice, even if the host is not on a whitelist.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from the project's official domain (idris-lang.org), which is plausibly the project's own release infrastructure; building from this source is normal AUR packaging practice, even if the host is not on a whitelist.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:16 source=("https://www.idris-lang.org/releases/idris2-${pkgver}.tgz")

PKGBUILD

1 offending line(s) highlighted
1#
2# Maintainer: Mark Barbone <mark.l.barbone at gmail>
3# Co-maintainer: Thomas Hansen <thomas-e-hansen at teh6 dot eu>
4#
5
6pkgname=idris2
7pkgver=0.8.0
8pkgrel=1
9pkgdesc="Functional Programming Language with Dependent Types"
10url="https://idris-lang.github.io/"
11license=('BSD-3-Clause')
12arch=('x86_64')
13depends=('chez-scheme' 'gmp')
14optdepends=('nodejs: for the node backend'
15 'racket: for the racket backend')
16source=("https://www.idris-lang.org/releases/idris2-${pkgver}.tgz")
17sha256sums=('940a283cb66b0097cab0d24fe10341274fab75cb3af58dc715944d6ca7230665')
18
19_srcname="Idris2-$pkgver"
20
21build() {
22 cd "$srcdir/$_srcname"
23
24 unset MAKEFLAGS # Parallel builds cause problems
25 export SCHEME=chez
26
27 mkdir -p "$srcdir/bootstrap"
28 PREFIX="$srcdir/bootstrap" make bootstrap
29 PREFIX="$srcdir/bootstrap" make install
30 make distclean
31
32 PATH="$srcdir/bootstrap/bin:$PATH" \
33 PREFIX=/usr/lib \
34 make all
35}
36
37check() {
38 cd "$srcdir/$_srcname"
39
40 unset MAKEFLAGS
41 export SCHEME=chez
42
43 # The refc backend tests contains a bunch of unused variables, presumably
44 # they're actually used for FFI things and this is just impossible to
45 # statically spot.
46 export CFLAGS="-Wno-error=unused-variable ${CFLAGS}"
47
48 PATH="$srcdir/$_srcname/build/exec:$PATH" \
49 LC_ALL=C make test INTERACTIVE=""
50}
51
52package() {
53 cd "$srcdir/$_srcname"
54
55 unset MAKEFLAGS
56 export SCHEME=chez
57
58 # Install compiler and runtime
59 PREFIX="$pkgdir/usr/lib" make install-idris2
60 PREFIX="$pkgdir/usr/lib" make install-support
61
62 IDRIS2_BINARY="$srcdir/$_srcname/build/exec/idris2"
63
64 # Install libraries
65 install_lib() {
66 IDRIS2_PREFIX="$pkgdir/usr/lib" \
67 "$IDRIS2_BINARY" --install-with-src $1.ipkg
68 }
69 for lib in prelude base contrib linear network test ; do
70 ( cd libs/$lib ; install_lib $lib )
71 done
72 install_lib idris2api
73
74 # Fix permissions
75 find "$pkgdir" -type d -exec chmod 755 {} \;
76
77 install -Dm644 <("$IDRIS2_BINARY" --bash-completion-script idris2) \
78 "$pkgdir/usr/share/bash-completion/completions/idris2"
79 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
80
81 # Put a symlink to executable in the expected place
82 # (see: man 7 file-hierarchy)
83 mkdir "$pkgdir/usr/bin"
84 ln -s "/usr/lib/bin/idris2" "$pkgdir/usr/bin/idris2"
85}
86

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion