Commit 30cca2e6 authored by Anderson Torres's avatar Anderson Torres
Browse files

celluloid: refactor

- finalAttrs
- strictDeps
- meta.changelog and meta.mainProgram
parent 093194d7
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -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;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -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;
  };