Merge pull request #234428 from 8-bit-fox/add-please-cli
please-cli: init at 0.3.0
This commit is contained in:
commit
65d5cac06d
3 changed files with 53 additions and 0 deletions
|
@ -177,6 +177,12 @@
|
||||||
githubId = 12578560;
|
githubId = 12578560;
|
||||||
name = "Quinn Bohner";
|
name = "Quinn Bohner";
|
||||||
};
|
};
|
||||||
|
_8-bit-fox = {
|
||||||
|
email = "sebastian@markwaerter.de";
|
||||||
|
github = "8-bit-fox";
|
||||||
|
githubId = 43320117;
|
||||||
|
name = "Sebastian Marquardt";
|
||||||
|
};
|
||||||
_9999years = {
|
_9999years = {
|
||||||
email = "rbt@fastmail.com";
|
email = "rbt@fastmail.com";
|
||||||
github = "9999years";
|
github = "9999years";
|
||||||
|
|
45
pkgs/applications/misc/please-cli/default.nix
Normal file
45
pkgs/applications/misc/please-cli/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
})
|
|
@ -31443,6 +31443,8 @@ with pkgs;
|
||||||
|
|
||||||
pixinsight = libsForQt5.callPackage ../applications/graphics/pixinsight { };
|
pixinsight = libsForQt5.callPackage ../applications/graphics/pixinsight { };
|
||||||
|
|
||||||
|
please-cli = callPackage ../applications/misc/please-cli { };
|
||||||
|
|
||||||
protonup-qt = python3Packages.callPackage ../applications/misc/protonup-qt { };
|
protonup-qt = python3Packages.callPackage ../applications/misc/protonup-qt { };
|
||||||
|
|
||||||
pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { };
|
pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { };
|
||||||
|
|
Loading…
Reference in a new issue