From a1d450e278488e3e83cf77031d93faefe55ae20c Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Wed, 29 Jan 2025 15:36:06 -0800 Subject: [PATCH] bounty: init at 0.1.0-unstable-25-01-29 --- pkgs/by-name/bo/bounty/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/bo/bounty/package.nix diff --git a/pkgs/by-name/bo/bounty/package.nix b/pkgs/by-name/bo/bounty/package.nix new file mode 100644 index 000000000000..ff7d17cfe0f4 --- /dev/null +++ b/pkgs/by-name/bo/bounty/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + openssl, + libgit2, + pkg-config, +}: + +rustPlatform.buildRustPackage { + pname = "bounty"; + version = "0.1.0-unstable-25-01-29"; + + src = fetchFromGitHub { + owner = "ghbountybot"; + repo = "cli"; + rev = "452c7545e611e0648de661f7f9c6444c157a3945"; + hash = "sha256-0f+ad7mgFskESh9yW+Y53hCFmHmINyy1XgHyB14sK54="; + }; + + cargoHash = "sha256-dlfoA5bWtyHrsviPdFd6O47D/cglvhJzChOboyu1Io0="; + useFetchCargoVendor = true; + + doCheck = true; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + openssl + libgit2 + ]; + + meta = { + description = "CLI tool for bountybot.dev"; + homepage = "https://github.com/ghbountybot/cli"; + license = [ lib.licenses.mit ]; + maintainers = with lib.maintainers; [ andrewgazelka ]; + mainProgram = "bounty"; + }; +}