Skip to content

Commit

Permalink
Merge pull request #200195 from Sohalt/bbin
Browse files Browse the repository at this point in the history
bbin: init at 0.1.4
  • Loading branch information
AndersonTorres authored Dec 7, 2022
2 parents 7d04753 + bc2eeb0 commit 15b09f2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/development/tools/bbin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, makeWrapper
, babashka
, graalvm17-ce
}:

stdenvNoCC.mkDerivation rec {
pname = "bbin";
version = "0.1.4";

src = fetchFromGitHub {
owner = "babashka";
repo = "bbin";
rev = "v${version}";
sha256 = "sha256-Oo6YF+uxcUG26Pz1X5uzPE/Hsx0UToOErZ2oUiKuZyI=";
};

nativeBuildInputs = [ makeWrapper ];

dontConfigure = true;
dontBuild = true;

installPhase = ''
runHook preInstall
install -D bbin $out/bin/bbin
mkdir -p $out/share
cp -r docs $out/share/docs
wrapProgram $out/bin/bbin \
--prefix PATH : "${lib.makeBinPath [ babashka graalvm17-ce ]}"
runHook postInstall
'';

meta = with lib; {
homepage = "https://github.com/babashka/bbin";
description = "Install any Babashka script or project with one command";
license = licenses.mit;
inherit (babashka.meta) platforms;
maintainers = with maintainers; [ sohalt ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5972,6 +5972,8 @@ with pkgs;

artim-dark = callPackage ../data/themes/artim-dark {};

bbin = callPackage ../development/tools/bbin {};

bore = callPackage ../tools/networking/bore {
inherit (darwin) Libsystem;
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
Expand Down

0 comments on commit 15b09f2

Please sign in to comment.