2021-05-12 12:08:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-22 13:48:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2021-05-12 12:08:50 +00:00
|
|
|
, desktop-file-utils
|
2019-08-22 13:48:02 +00:00
|
|
|
, glib
|
2022-01-04 10:11:42 +00:00
|
|
|
, gtk4
|
2023-10-20 21:45:01 +00:00
|
|
|
, libGL
|
2022-08-21 00:47:44 +00:00
|
|
|
, libepoxy
|
|
|
|
, libadwaita
|
2021-05-12 12:08:50 +00:00
|
|
|
, meson
|
2019-08-22 13:48:02 +00:00
|
|
|
, mpv
|
2021-05-12 12:08:50 +00:00
|
|
|
, ninja
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2022-01-04 10:11:42 +00:00
|
|
|
, wrapGAppsHook4
|
2019-08-22 13:48:02 +00:00
|
|
|
}:
|
|
|
|
|
2023-09-17 12:44:17 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-22 13:48:02 +00:00
|
|
|
pname = "celluloid";
|
2023-09-17 01:59:39 +00:00
|
|
|
version = "0.26";
|
2019-08-22 13:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celluloid-player";
|
|
|
|
repo = "celluloid";
|
2023-09-17 12:44:17 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-09-17 01:59:39 +00:00
|
|
|
hash = "sha256-npaagLlkwDe0r0hqj7buM4B9sbLCX1sR2yFXXj+obdE=";
|
2019-08-22 13:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2021-05-12 12:08:50 +00:00
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2021-05-12 12:08:50 +00:00
|
|
|
python3
|
2022-01-04 10:11:42 +00:00
|
|
|
wrapGAppsHook4
|
2019-08-22 13:48:02 +00:00
|
|
|
];
|
2022-08-21 00:47:44 +00:00
|
|
|
|
2019-08-22 13:48:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
2022-01-04 10:11:42 +00:00
|
|
|
gtk4
|
2023-10-20 21:45:01 +00:00
|
|
|
libGL
|
2022-08-21 00:47:44 +00:00
|
|
|
libadwaita
|
|
|
|
libepoxy
|
2019-08-22 13:48:02 +00:00
|
|
|
mpv
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-post-install.py src/generate-authors.py
|
|
|
|
'';
|
|
|
|
|
2023-09-17 12:44:17 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2019-08-22 13:48:02 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-12-25 22:11:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-08-21 00:47:44 +00:00
|
|
|
|
2023-09-17 12:44:17 +00:00
|
|
|
meta = {
|
2021-05-12 12:08:50 +00:00
|
|
|
homepage = "https://github.com/celluloid-player/celluloid";
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "Simple GTK frontend for the mpv video player";
|
2019-08-22 13:48:02 +00:00
|
|
|
longDescription = ''
|
2021-05-12 12:08:50 +00:00
|
|
|
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.
|
2019-08-22 13:48:02 +00:00
|
|
|
'';
|
2023-09-17 12:44:17 +00:00
|
|
|
changelog = "https://github.com/celluloid-player/celluloid/releases/tag/${finalAttrs.src.rev}";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "celluloid";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.linux;
|
2019-08-22 13:48:02 +00:00
|
|
|
};
|
2023-09-17 12:44:17 +00:00
|
|
|
})
|