2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-08-22 15:48:02 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-08-22 15:48:02 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, pkgconfig
|
|
|
|
, desktop-file-utils
|
|
|
|
, wrapGAppsHook
|
|
|
|
, appstream-glib
|
|
|
|
, epoxy
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, mpv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "celluloid";
|
2020-09-20 06:39:58 +02:00
|
|
|
version = "0.20";
|
2019-08-22 15:48:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celluloid-player";
|
|
|
|
repo = "celluloid";
|
|
|
|
rev = "v${version}";
|
2020-09-20 06:39:58 +02:00
|
|
|
hash = "sha256-fEZnH8EqU6CykgKINXnKChuBUlisroa97B1vjcx2cWA=";
|
2019-08-22 15:48:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
appstream-glib
|
|
|
|
gettext
|
|
|
|
pkgconfig
|
|
|
|
desktop-file-utils
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
epoxy
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
mpv
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-post-install.py src/generate-authors.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-07-29 18:33:39 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
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 = ''
|
|
|
|
GNOME MPV interacts with mpv via the client API exported by libmpv,
|
|
|
|
allowing access to mpv's powerful playback capabilities through an
|
|
|
|
easy-to-use user interface.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/celluloid-player/celluloid";
|
|
|
|
license = licenses.gpl3Plus;
|
2019-11-14 00:42:24 +01:00
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
2019-08-22 15:48:02 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|