9 stdenvNoCC.mkDerivation rec {
11 version = "0.4.0-devel3";
14 url = "https://github.com/akinomyoga/ble.sh/releases/download/v${version}/ble-${version}.tar.xz";
15 sha256 = "sha256-kGLp8RaInYSrJEi3h5kWEOMAbZV/gEPFUjOLgBuMhCI=";
21 nativeCheckInputs = [ bashInteractive glibcLocales ];
22 preCheck = "export LC_ALL=en_US.UTF-8";
27 mkdir -p "$out/share/blesh/lib"
29 cat <<EOF >"$out/share/blesh/lib/_package.sh"
30 _ble_base_package_type=nix
32 function ble/base/package:nix/update {
33 echo "Ble.sh is installed by Nix. You can update it there." >&2
38 cp -rv $src/* $out/share/blesh
45 cat <<EOF >"$out/bin/blesh-share"
47 # Run this script to find the ble.sh shared folder
48 # where all the shell scripts are living.
49 echo "$out/share/blesh"
51 chmod +x "$out/bin/blesh-share"
55 homepage = "https://github.com/akinomyoga/ble.sh";
56 description = "Bash Line Editor -- a full-featured line editor written in pure Bash";
57 mainProgram = "blesh-share";
58 license = licenses.bsd3;
59 maintainers = with maintainers; [ aiotter ];
60 platforms = platforms.unix;