nixpkgs/pkgs/applications/video/celluloid/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, desktop-file-utils
, libepoxy
, glib
2022-01-04 10:11:42 +00:00
, gtk4
, wayland
, meson
, mpv
, ninja
, nix-update-script
, pkg-config
, python3
2022-01-04 10:11:42 +00:00
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "celluloid";
2022-03-08 02:37:59 +00:00
version = "0.23";
src = fetchFromGitHub {
owner = "celluloid-player";
repo = "celluloid";
rev = "v${version}";
2022-03-08 02:37:59 +00:00
hash = "sha256-YKDud/UJJx9ko5k+Oux8mUUme0MXaRMngESE14Hhxv8=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
python3
2022-01-04 10:11:42 +00:00
wrapGAppsHook4
];
buildInputs = [
libepoxy
glib
2022-01-04 10:11:42 +00:00
gtk4
wayland
mpv
];
postPatch = ''
patchShebangs meson-post-install.py src/generate-authors.py
'';
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;
};
}