nixpkgs/pkgs/by-name/ba/bashly/package.nix
2023-10-20 18:59:06 +02:00

38 lines
690 B
Nix

{ lib
, stdenvNoCC
, bundlerApp
}:
let
bashlyBundlerApp = bundlerApp {
pname = "bashly";
gemdir = ./.;
exes = [ "bashly" ];
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
name = "bashly";
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir $out;
cd $out;
mkdir bin; pushd bin;
ln -vs ${bashlyBundlerApp}/bin/bashly;
runHook postInstall
'';
meta = {
description = "Bash command line framework and CLI generator";
homepage = "https://github.com/DannyBen/bashly";
license = lib.licenses.mit;
mainProgram = "bashly";
maintainers = with lib.maintainers; [ drupol ];
platforms = lib.platforms.unix;
};
})