add vim + fzy
This commit is contained in:
parent
8629211e4c
commit
a78bca8900
|
@ -1 +1,2 @@
|
|||
*/result
|
||||
*/bin
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
#test -n "$ARCH" || ARCH=i686-embedded
|
||||
test -n "$ARCH" || ARCH=musl32
|
||||
test -n "$CHANNEL" || CHANNEL=nixos-24.05
|
||||
test -n "$1" || { echo "usage: [ARCH=...] [CHANNEL=...] build_nixpkg.sh <packagename>"; exit 0; }
|
||||
set -xe
|
||||
nix-build '<nixpkgs>' --pure -I nixpkgs=channel:$CHANNEL -A pkgsCross.$ARCH.pkgsStatic.$1
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
dir=$(pwd)
|
||||
|
||||
# overlay our directories
|
||||
test -f /.fzypackage || {
|
||||
cp bin/fzy /bin/.
|
||||
ln -s /bin/fzy /bin/fzf
|
||||
echo 1 > /.fzypackage
|
||||
echo "[i] fzy is now available at /bin/fzy"
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
../nix/build_nixpkg.sh fzy
|
||||
out=$(pwd)
|
||||
rm -rf *.zip bin || true
|
||||
mkdir bin || true
|
||||
cp result/bin/fzy bin/.
|
||||
#cp result/share .vim/.
|
||||
zip -r package.fzy.zip bin .env
|
Binary file not shown.
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
dir=$(pwd)
|
||||
|
||||
# overlay our directories
|
||||
test -f /.vimpackage || {
|
||||
cp bin/vim /bin/.
|
||||
cp -r .vim /root/.
|
||||
echo 1 > /.vimpackage
|
||||
echo "[i] vim is now available at /bin/vim"
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
" default vimrc file.
|
||||
|
||||
" we redirect shared files to /root/.vim/share
|
||||
" the buildscript puts share-files here
|
||||
let &runtimepath = '/root/.vim/share/vim/vim91'
|
||||
|
||||
let g:syntax_on = 0 " disable syntax (minimal demo)
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
../nix/build_nixpkg.sh vim
|
||||
out=$(pwd)
|
||||
rm -rf *.zip .vim/share bin || true
|
||||
mkdir bin || true
|
||||
cp result/bin/vim bin/.
|
||||
#cp result/share .vim/.
|
||||
zip -r package.vim.zip bin .vim .env
|
Binary file not shown.
Loading…
Reference in New Issue