celluloid: refactor

- finalAttrs
- strictDeps
- meta.changelog and meta.mainProgram
This commit is contained in:
Anderson Torres 2023-09-17 09:44:17 -03:00
parent 093194d747
commit 30cca2e6f7
2 changed files with 11 additions and 9 deletions

View file

@ -16,14 +16,14 @@
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "celluloid";
version = "0.26";
src = fetchFromGitHub {
owner = "celluloid-player";
repo = "celluloid";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-npaagLlkwDe0r0hqj7buM4B9sbLCX1sR2yFXXj+obdE=";
};
@ -49,11 +49,13 @@ stdenv.mkDerivation rec {
patchShebangs meson-post-install.py src/generate-authors.py
'';
strictDeps = true;
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
meta = {
homepage = "https://github.com/celluloid-player/celluloid";
description = "Simple GTK frontend for the mpv video player";
longDescription = ''
@ -61,8 +63,10 @@ stdenv.mkDerivation rec {
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;
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;
};
}
})

View file

@ -32488,8 +32488,6 @@ with pkgs;
gnomecast = callPackage ../applications/video/gnomecast { };
celluloid = callPackage ../applications/video/celluloid { };
gnome-recipes = callPackage ../applications/misc/gnome-recipes {
inherit (gnome) gnome-autoar;
};