parrot: init at 1.6.0

This commit is contained in:
Gerg-L 2023-08-21 20:25:12 -04:00
parent d3430521cf
commit 38955360ce
No known key found for this signature in database
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, rustPlatform
, fetchFromGitHub
, cmake
, ffmpeg
, libopus
, makeBinaryWrapper
, nix-update-script
, openssl
, pkg-config
, stdenv
, yt-dlp
, Security
}:
let
version = "1.6.0";
in
rustPlatform.buildRustPackage {
pname = "parrot";
inherit version;
src = fetchFromGitHub {
owner = "aquelemiguel";
repo = "parrot";
rev = "v${version}";
hash = "sha256-f6YAdsq2ecsOCvk+A8wsUu+ywQnW//gCAkVLF0HTn8c=";
};
cargoHash = "sha256-e4NHgwoNkZ0//rugHrP0gU3pntaMeBJsV/YSzJfD8r4=";
nativeBuildInputs = [ cmake makeBinaryWrapper pkg-config ];
buildInputs = [ libopus openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
postInstall = ''
wrapProgram $out/bin/parrot \
--prefix PATH : ${lib.makeBinPath [ ffmpeg yt-dlp ]}
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "A hassle-free Discord music bot";
homepage = "https://github.com/aquelemiguel/parrot";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gerg-l ];
mainProgram = "parrot";
};
}

View File

@ -11663,6 +11663,10 @@ with pkgs;
autoreconfHook = buildPackages.autoreconfHook269;
};
parrot = callPackage ../applications/audio/parrot {
inherit (darwin.apple_sdk.frameworks) Security;
};
patchutils = callPackage ../tools/text/patchutils { };
patchutils_0_3_3 = callPackage ../tools/text/patchutils/0.3.3.nix { };