From a956a417497c1f6d796ef59dea92e1f683007075 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 9 May 2024 12:42:52 +0800 Subject: [PATCH] fix: nim-nightly (#1238) (cherry picked from commit 34bdd673e773454f02d2a7e4444852ea90963afb) --- anda/langs/nim/nim-nightly/nim-nightly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anda/langs/nim/nim-nightly/nim-nightly.spec b/anda/langs/nim/nim-nightly/nim-nightly.spec index 653c916700..9a7758189f 100644 --- a/anda/langs/nim/nim-nightly/nim-nightly.spec +++ b/anda/langs/nim/nim-nightly/nim-nightly.spec @@ -100,11 +100,13 @@ mold -run bin/nim cc -d:nimCallDepthLimit=10000 -r tools/niminst/niminst --var:v sh ./install.sh %buildroot/usr/bin -mkdir -p %buildroot/%_bindir %buildroot/%_datadir/bash-completion/completions %buildroot/usr/lib/nim +mkdir -p %buildroot/%_bindir %buildroot/%_datadir/bash-completion/completions %buildroot/usr/lib/nim %buildroot%_datadir install -Dpm755 bin/nim{grep,suggest,pretty} %buildroot/%_bindir install -Dpm644 tools/nim.bash-completion %buildroot/%_datadir/bash-completion/completions/nim install -Dpm644 dist/nimble/nimble.bash-completion %buildroot/%_datadir/bash-completion/completions/nimble install -Dpm644 -t%buildroot/%_mandir/man1 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 +mv %buildroot%_bindir/nim %buildroot%_datadir/ +ln -s %_datadir/nim/bin/nim %buildroot%_bindir/nim %ifarch x86_64 mkdir -p %buildroot/%_docdir/%name/html @@ -129,6 +131,7 @@ rm %buildroot%_bindir/*.bat || true %_bindir/nim{,ble} %_mandir/man1/nim{,ble}.1* %_datadir/bash-completion/completions/nim{,ble} +%_datadir/nim/ %_prefix/lib/nim/ %_sysconfdir/nim/