please-cli: init at version 0.3.0

This commit is contained in:
Sebastian Marquardt 2023-05-26 16:11:22 +02:00
parent 4f53efe34b
commit f29a714fa6
3 changed files with 53 additions and 0 deletions

View file

@ -177,6 +177,12 @@
githubId = 12578560;
name = "Quinn Bohner";
};
_8-bit-fox = {
email = "sebastian@markwaerter.de";
github = "8-bit-fox";
githubId = 43320117;
name = "Sebastian Marquardt";
};
_9999years = {
email = "rbt@fastmail.com";
github = "9999years";

View file

@ -0,0 +1,45 @@
{ lib
, curl
, fetchFromGitHub
, jq
, makeBinaryWrapper
, please-cli
, stdenv
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "please-cli";
version = "0.3.0";
src = fetchFromGitHub {
owner = "TNG";
repo = "please-cli";
rev = "v${finalAttrs.version}";
hash = "sha256-rJIR4eMhXL4K9iO7JxnkgWNsICV3hPQb0aobWNuHAG0=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
installPhase = ''
runHook preInstall
install -Dm555 please.sh "$out/bin/please"
wrapProgram $out/bin/please \
--prefix PATH : ${lib.makeBinPath [ curl jq ]}
runHook postInstall
'';
passthru.tests = testers.testVersion {
package = please-cli;
version = "v${finalAttrs.version}";
};
meta = with lib; {
description = "An AI helper script to create CLI commands based on GPT prompts";
homepage = "https://github.com/TNG/please-cli";
license = licenses.asl20;
maintainers = with maintainers; [ _8-bit-fox ];
mainProgram = "please";
platforms = platforms.all;
};
})

View file

@ -31426,6 +31426,8 @@ with pkgs;
pixinsight = libsForQt5.callPackage ../applications/graphics/pixinsight { };
please-cli = callPackage ../applications/misc/please-cli { };
protonup-qt = python3Packages.callPackage ../applications/misc/protonup-qt { };
pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { };