2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, desktop-file-utils
|
2021-12-06 16:07:01 +00:00
|
|
|
, libepoxy
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
2022-01-07 04:07:37 +00:00
|
|
|
, gtk4
|
|
|
|
, wayland
|
2021-05-20 23:08:51 +00:00
|
|
|
, meson
|
2020-04-24 23:36:52 +00:00
|
|
|
, mpv
|
2021-05-20 23:08:51 +00:00
|
|
|
, ninja
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2022-01-07 04:07:37 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "celluloid";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "0.22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celluloid-player";
|
|
|
|
repo = "celluloid";
|
|
|
|
rev = "v${version}";
|
2022-01-07 04:07:37 +00:00
|
|
|
hash = "sha256-QGN8YLtyb9YVNDK2ZDQwHJVg6UTIQssfNK9lQqxMNKQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2021-05-20 23:08:51 +00:00
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
python3
|
2022-01-07 04:07:37 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
libepoxy
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
2022-01-07 04:07:37 +00:00
|
|
|
gtk4
|
|
|
|
wayland
|
2020-04-24 23:36:52 +00:00
|
|
|
mpv
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-post-install.py src/generate-authors.py
|
2022-01-07 04:07:37 +00:00
|
|
|
# Remove this for next release
|
|
|
|
substituteInPlace meson-post-install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/celluloid-player/celluloid";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple GTK frontend for the mpv video player";
|
|
|
|
longDescription = ''
|
2021-05-20 23:08:51 +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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|