mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
please-cli: init at version 0.3.0
This commit is contained in:
parent
4f53efe34b
commit
f29a714fa6
3 changed files with 53 additions and 0 deletions
|
@ -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";
|
||||
|
|
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;
|
||||
};
|
||||
})
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue