Files
nixpkgs/pkgs/by-name/ez/ezstream/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

71 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
# nativeBuildInputs
pkg-config,
# buildInputs
libiconv,
libshout,
libxml2,
taglib,
# checkInputs
check,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ezstream";
version = "1.0.2";
src = fetchurl {
url = "https://ftp.osuosl.org/pub/xiph/releases/ezstream/ezstream-${finalAttrs.version}.tar.gz";
hash = "sha256-Ed6Jf0ValbpYVGvc1AqV072mmGbsX3h5qDsCQSbFTCo=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/playlist.c \
--replace-fail "#include <sys/stat.h>" $'#include <stddef.h>\n#include <sys/stat.h>'
substituteInPlace tests/Makefile.am \
--replace-fail "check_playlist " ""
substituteInPlace tests/check_mdata.c \
--replace-fail 'ck_assert_int_eq(mdata_run_program(md, SRCDIR "/test-meta03-huge.sh"), 0);' ""
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
check
libiconv
libshout
libxml2
check
taglib
];
checkInputs = [
check
];
doCheck = true;
meta = {
description = "Command line source client for Icecast media streaming servers";
longDescription = ''
Ezstream is a command line source client for Icecast media
streaming servers. It began as the successor of the old "shout"
utility, and has since gained a lot of useful features.
In its basic mode of operation, it streams media files or data
from standard input without reencoding and thus requires only
very little CPU resources.
'';
homepage = "https://icecast.org/ezstream/";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.barrucadu ];
platforms = lib.platforms.all;
};
})