2021-05-12 14:08:50 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-22 15:48:02 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2021-05-12 14:08:50 +02:00
|
|
|
, desktop-file-utils
|
2019-08-22 15:48:02 +02:00
|
|
|
, epoxy
|
2021-05-12 14:08:50 +02:00
|
|
|
, gettext
|
2019-08-22 15:48:02 +02:00
|
|
|
, glib
|
|
|
|
, gtk3
|
2021-05-12 14:08:50 +02:00
|
|
|
, meson
|
2019-08-22 15:48:02 +02:00
|
|
|
, mpv
|
2021-05-12 14:08:50 +02:00
|
|
|
, ninja
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2019-08-22 15:48:02 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "celluloid";
|
2021-05-12 14:08:50 +02:00
|
|
|
version = "0.21";
|
2019-08-22 15:48:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celluloid-player";
|
|
|
|
repo = "celluloid";
|
|
|
|
rev = "v${version}";
|
2021-05-12 14:08:50 +02:00
|
|
|
hash = "sha256-1Jeg1uqWxURGKR/Xg4j4roZ9Pg5MR7geyttdzlOU+rA=";
|
2019-08-22 15:48:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2021-05-12 14:08:50 +02:00
|
|
|
desktop-file-utils
|
2019-08-22 15:48:02 +02:00
|
|
|
gettext
|
2021-05-12 14:08:50 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2021-05-12 14:08:50 +02:00
|
|
|
python3
|
2019-08-22 15:48:02 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
epoxy
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
mpv
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-post-install.py src/generate-authors.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-05-12 14:08:50 +02:00
|
|
|
homepage = "https://github.com/celluloid-player/celluloid";
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "Simple GTK frontend for the mpv video player";
|
2019-08-22 15:48:02 +02:00
|
|
|
longDescription = ''
|
2021-05-12 14:08:50 +02: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 15:48:02 +02:00
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
2021-05-12 14:08:50 +02:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2019-08-22 15:48:02 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2021-05-12 14:08:50 +02:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
2019-08-22 15:48:02 +02:00
|
|
|
}
|