mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Merge pull request #204763 from oluceps/add-rustplayer
rustplayer: init at unstable-2022-12-29
This commit is contained in:
commit
b08bc0225f
1998
pkgs/by-name/ru/rustplayer/Cargo.lock
generated
Normal file
1998
pkgs/by-name/ru/rustplayer/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
13
pkgs/by-name/ru/rustplayer/dynamic-lib.patch
Normal file
13
pkgs/by-name/ru/rustplayer/dynamic-lib.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/thirdparty/ffmpeg-decoder-rs/Cargo.toml b/thirdparty/ffmpeg-decoder-rs/Cargo.toml
|
||||
index 9db9ac9..4546253 100644
|
||||
--- a/thirdparty/ffmpeg-decoder-rs/Cargo.toml
|
||||
+++ b/thirdparty/ffmpeg-decoder-rs/Cargo.toml
|
||||
@@ -20,7 +20,7 @@ default = []
|
||||
rodio_source = ['rodio']
|
||||
|
||||
[dependencies]
|
||||
-ffmpeg-sys-next = { git="https://github.com/Kingtous/rust-ffmpeg-sys.git", branch="fix/4.4.0", default-features=false, features=["avcodec", "avformat", "swresample", "static"] }
|
||||
+ffmpeg-sys-next = { git="https://github.com/Kingtous/rust-ffmpeg-sys.git", branch="fix/4.4.0", default-features=false, features=["avcodec", "avformat", "swresample"] }
|
||||
|
||||
thiserror = "1.0"
|
||||
log = "0.4"
|
47
pkgs/by-name/ru/rustplayer/package.nix
Normal file
47
pkgs/by-name/ru/rustplayer/package.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, openssl
|
||||
, alsa-lib
|
||||
, ffmpeg_4
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "rustplayer";
|
||||
version = "unstable-2022-12-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kingtous";
|
||||
repo = "RustPlayer";
|
||||
rev = "a369bc19ab4a8c568c73be25c5e6117e1ee5d848";
|
||||
sha256 = "sha256-x82EdA7ezCzux1C85IcI2ZQ3M95sH6/k97Rv6lqc5eo=";
|
||||
};
|
||||
|
||||
# This patch is from the source
|
||||
patches = [
|
||||
./dynamic-lib.patch
|
||||
];
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"ffmpeg-sys-next-4.4.0" = "sha256-TBgf+J+ud7nnVjf0r98/rujFPEayjEaVi+vnSE6/5Ak=";
|
||||
};
|
||||
};
|
||||
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
||||
buildInputs = [ alsa-lib openssl ffmpeg_4 ];
|
||||
|
||||
checkFlags = [
|
||||
# network required
|
||||
"--skip=fetch_and_play"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Kingtous/RustPlayer";
|
||||
description = "A local audio player and network m3u8 radio player using a terminal interface";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ oluceps ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user