mkPkgs -> mkPackages

./pkgs -> ./packages
This commit is contained in:
Gerg-L 2023-07-25 22:29:44 -04:00
parent 25f89d03e2
commit 52c2b49425
6 changed files with 2 additions and 2 deletions

44
packages/parrot.nix Normal file
View file

@ -0,0 +1,44 @@
{
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=";
};
cargoHash = "sha256-e4NHgwoNkZ0//rugHrP0gU3pntaMeBJsV/YSzJfD8r4=";
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
];
buildInputs = [
libopus
openssl
];
postInstall = ''
wrapProgram $out/bin/parrot \
--prefix PATH : ${lib.makeBinPath [
yt-dlp
ffmpeg
]}
'';
}