Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
alsa-lib,
ffmpeg_6,
}:
rustPlatform.buildRustPackage {
pname = "rustplayer";
version = "1.1.2-unstable-2024-07-14";
src = fetchFromGitHub {
owner = "Kingtous";
repo = "RustPlayer";
rev = "29a16f01912bc3e92008c7ae2f9569c8d7250bd3";
hash = "sha256-+36dLp54rfNK0lSSTG5+J6y51NUtBhtwfhD7L23J5aY=";
};
# This patch is from the source
patches = [
./dynamic-lib.patch
];
cargoHash = "sha256-cfr5q44SzJ5iYm8cu/3+RkoPaoUklmOV/UbSdZZbu38=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
alsa-lib
openssl
ffmpeg_6
];
checkFlags = [
# network required
"--skip=fetch_and_play"
];
meta = {
homepage = "https://github.com/Kingtous/RustPlayer";
description = "Local audio player and network m3u8 radio player using a terminal interface";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ oluceps ];
platforms = lib.platforms.unix;
};
}