Files
nixpkgs/pkgs/by-name/pa/parrot/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
cmake,
ffmpeg,
libopus,
makeBinaryWrapper,
unstableGitUpdater,
openssl,
pkg-config,
yt-dlp,
}:
rustPlatform.buildRustPackage {
pname = "parrot";
version = "1.6.0-unstable-2024-07-12";
src = fetchFromGitHub {
owner = "aquelemiguel";
repo = "parrot";
rev = "a6c1e88a1e360d46a91bc536985db87af72245b3";
hash = "sha256-to1SVLzw2l06cqsVOopk9KH2UyGgJ4CwWagHxaDrf4Y=";
};
cargoHash = "sha256-be/gGKCd8/VgcjzhyMKDl5TzAuavm1rPNYBm8RLTP90=";
nativeBuildInputs = [
cmake
makeBinaryWrapper
pkg-config
];
buildInputs = [
libopus
openssl
];
postInstall = ''
wrapProgram $out/bin/parrot \
--prefix PATH : ${
lib.makeBinPath [
ffmpeg
yt-dlp
]
}
'';
passthru.updateScript = unstableGitUpdater {
tagPrefix = "v";
};
meta = {
description = "Hassle-free Discord music bot";
homepage = "https://github.com/aquelemiguel/parrot";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gerg-l ];
mainProgram = "parrot";
};
}