Merge pull request #234428 from 8-bit-fox/add-please-cli

please-cli: init at 0.3.0
This commit is contained in:
Pol Dellaiera 2023-06-02 08:32:19 +02:00 committed by GitHub
commit 65d5cac06d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -31443,6 +31443,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 { };