nixpkgs/pkgs/by-name/ce/celluloid/package.nix

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

75 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, desktop-file-utils
, glib
2022-01-04 10:11:42 +00:00
, gtk4
, libGL
2022-08-21 00:47:44 +00:00
, libepoxy
, libadwaita
, meson
, mpv
, ninja
, nix-update-script
, pkg-config
, python3
2022-01-04 10:11:42 +00:00
, wrapGAppsHook4
}:
stdenv.mkDerivation (finalAttrs: {
pname = "celluloid";
2023-09-17 01:59:39 +00:00
version = "0.26";
src = fetchFromGitHub {
owner = "celluloid-player";
repo = "celluloid";
rev = "v${finalAttrs.version}";
2023-09-17 01:59:39 +00:00
hash = "sha256-npaagLlkwDe0r0hqj7buM4B9sbLCX1sR2yFXXj+obdE=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
python3
2022-01-04 10:11:42 +00:00
wrapGAppsHook4
];
2022-08-21 00:47:44 +00:00
buildInputs = [
glib
2022-01-04 10:11:42 +00:00
gtk4
libGL
2022-08-21 00:47:44 +00:00
libadwaita
libepoxy
mpv
];
postPatch = ''
patchShebangs meson-post-install.py src/generate-authors.py
'';
strictDeps = true;
doCheck = true;
passthru.updateScript = nix-update-script { };
2022-08-21 00:47:44 +00:00
meta = {
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.
'';
changelog = "https://github.com/celluloid-player/celluloid/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.gpl3Plus;
mainProgram = "celluloid";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
})