Files
nixpkgs/pkgs/by-name/ce/celluloid/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

84 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
appstream-glib,
desktop-file-utils,
glib,
gtk4,
libGL,
libepoxy,
libadwaita,
meson,
mpv,
ninja,
nix-update-script,
pkg-config,
python3,
wrapGAppsHook4,
yt-dlp,
youtubeSupport ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "celluloid";
version = "0.29";
src = fetchFromGitHub {
owner = "celluloid-player";
repo = "celluloid";
tag = "v${finalAttrs.version}";
hash = "sha256-p4jMEM+ikcyVIi7cHm7u0wk9PKD8YJyhRXABgsh/SJc=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
python3
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libGL
libadwaita
libepoxy
mpv
];
postPatch = ''
patchShebangs meson-post-install.py src/generate-authors.py
'';
preFixup = lib.optionalString youtubeSupport ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ yt-dlp ]}"
)
'';
strictDeps = true;
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/celluloid-player/celluloid";
description = "Simple GTK frontend for the mpv video player";
longDescription = ''
Celluloid (formerly GNOME MPV) is a simple GTK+ frontend for mpv.
Celluloid interacts with mpv via the client API exported by libmpv,
allowing access to mpv's powerful playback capabilities.
'';
changelog = "https://github.com/celluloid-player/celluloid/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.gpl3Plus;
mainProgram = "celluloid";
maintainers = with lib.maintainers; [ samlukeyes123 ];
platforms = lib.platforms.linux;
};
})