nixos/pkgs/parrot.nix
Gerg-L 8d1ac4c573 removed IFD's
made t-rex slightly less scuffed

deleted afk-cmds
2023-07-03 16:52:01 -04:00

44 lines
744 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
cmake,
libopus,
yt-dlp,
ffmpeg,
makeWrapper,
}:
rustPlatform.buildRustPackage
{
pname = "parrot";
version = "1.6.0";
src = fetchFromGitHub {
owner = "aquelemiguel";
repo = "parrot";
rev = "6b1df01bd9cce1c0d8446dea720c4a32ff935514";
hash = "sha256-f6YAdsq2ecsOCvk+A8wsUu+ywQnW//gCAkVLF0HTn8c=";
};
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
];
buildInputs = [
libopus
openssl
];
postInstall = ''
wrapProgram $out/bin/parrot \
--prefix PATH ${lib.makeBinPath [
yt-dlp
ffmpeg
]}'';
cargoHash = "sha256-e4NHgwoNkZ0//rugHrP0gU3pntaMeBJsV/YSzJfD8r4=";
RUSTC_BOOTSTRAP = 1;
}