Skip to content

Commit

Permalink
ble.sh: init at 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aiotter committed Jul 18, 2022
1 parent 3aa086b commit 16e7e09
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/shells/bash/ble.sh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib, stdenv, git, fetchgit }:

stdenv.mkDerivation {
name = "ble.sh";
version = "0.3.3";

nativeBuildInputs = [ git ];

src = fetchgit {
url = "https://github.com/akinomyoga/ble.sh.git";
rev = "refs/tags/v0.3.3";
hash = "sha256-Gfo2S1t5Kdy+8TEDS4M5yhyRShvzQIljdE0MQK1CL+4=";
fetchSubmodules = true;
};

doCheck = true;

postInstall = ''
mkdir -p "$out/bin"
echo 'source "$(dirname "$BASH_SOURCE")/../share/ble.sh"' >"$out/bin/ble.sh"
chmod +x "$out/bin/ble.sh"
'';

makeFlags = [ "INSDIR=$(out)/share" ];

meta = with lib; {
homepage = "https://github.com/akinomyoga/ble.sh";
description = "Bash Line Editor -- a full-featured line editor written in pure Bash";
license = licenses.bsd3;
maintainers = with maintainers; [ aiotter ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12378,6 +12378,8 @@ with pkgs;

yarn-bash-completion = callPackage ../shells/bash/yarn-completion { };

ble-sh = callPackage ../shells/bash/ble.sh { };

undistract-me = callPackage ../shells/bash/undistract-me { };

dash = callPackage ../shells/dash { };
Expand Down

0 comments on commit 16e7e09

Please sign in to comment.