more shanigans

This commit is contained in:
Gerg-L 2023-06-10 21:52:04 -04:00
parent 5102d87d20
commit b602fc4ee0
8 changed files with 204 additions and 154 deletions

View file

@ -11,33 +11,37 @@
makeWrapper,
}:
# yt-dlp and ffmpeg required at runtime
rustPlatform.buildRustPackage {
pname = "parrot";
version = "1.5.1";
let
src = fetchFromGitHub {
owner = "aquelemiguel";
repo = "parrot";
rev = "6b1df01bd9cce1c0d8446dea720c4a32ff935514";
hash = "sha256-f6YAdsq2ecsOCvk+A8wsUu+ywQnW//gCAkVLF0HTn8c=";
};
in
rustPlatform.buildRustPackage
{
pname = "parrot";
version = "1.6.0";
inherit src;
buildInputs = [
libopus
openssl
];
buildInputs = [
libopus
openssl
];
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
];
postInstall = ''
wrapProgram $out/bin/parrot \
--set PATH ${lib.makeBinPath [
yt-dlp
ffmpeg
]}'';
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
];
postInstall = ''
wrapProgram $out/bin/parrot \
--set PATH ${lib.makeBinPath [
yt-dlp
ffmpeg
]}'';
cargoSha256 = "sha256-RueYf+SzDwhqEb40iR0hViEuMinH72T480fuqJWJ+uk=";
cargoLock.lockFile = src + "/Cargo.lock";
RUSTC_BOOTSTRAP = 1;
}
RUSTC_BOOTSTRAP = 1;
}