nixpkgs/pkgs/by-name/ba/bashly/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
690 B
Nix
Raw Normal View History

2023-10-20 16:59:06 +00:00
{ 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;
};
})