3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/celluloid/default.nix
2022-01-04 12:04:55 +01:00

72 lines
1.5 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, desktop-file-utils
, libepoxy
, glib
, gtk4
, wayland
, meson
, mpv
, ninja
, nix-update-script
, pkg-config
, python3
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "celluloid";
version = "0.22";
src = fetchFromGitHub {
owner = "celluloid-player";
repo = "celluloid";
rev = "v${version}";
hash = "sha256-QGN8YLtyb9YVNDK2ZDQwHJVg6UTIQssfNK9lQqxMNKQ=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
python3
wrapGAppsHook4
];
buildInputs = [
libepoxy
glib
gtk4
wayland
mpv
];
postPatch = ''
patchShebangs meson-post-install.py src/generate-authors.py
# Remove this for next release
substituteInPlace meson-post-install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
'';
doCheck = true;
meta = with lib; {
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.
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux;
};
passthru.updateScript = nix-update-script {
attrPath = pname;
};
}