nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 appstream,
4 blueprint-compiler,
5 desktop-file-utils,
6 fetchFromGitLab,
7 glib,
8 gobject-introspection,
9 gst_all_1,
10 gtk4,
11 libadwaita,
12 meson,
13 ninja,
14 nix-update-script,
15 pkg-config,
16 python3Packages,
17 wrapGAppsHook4,
18}:
19
20python3Packages.buildPythonApplication rec {
21 pname = "showtime";
22 version = "48.1";
23 pyproject = false;
24
25 src = fetchFromGitLab {
26 domain = "gitlab.gnome.org";
27 group = "GNOME";
28 owner = "Incubator";
29 repo = "showtime";
30 rev = "refs/tags/${version}";
31 hash = "sha256-uk3KgiLsYjqBhlKssnkWO6D4ufwJb/o+rQYSA7pa1lU=";
32 };
33
34 strictDeps = true;
35
36 nativeBuildInputs = [
37 appstream
38 blueprint-compiler
39 desktop-file-utils
40 glib # For `glib-compile-schemas`
41 gobject-introspection
42 gtk4 # For `gtk-update-icon-cache`
43 meson
44 ninja
45 pkg-config
46 wrapGAppsHook4
47 ];
48
49 buildInputs = [
50 gst_all_1.gst-plugins-bad
51 gst_all_1.gst-plugins-base
52 gst_all_1.gst-plugins-good
53 gst_all_1.gst-plugins-rs
54 gst_all_1.gst-plugins-ugly
55 gst_all_1.gst-libav
56 gst_all_1.gstreamer
57 libadwaita
58 ];
59
60 dependencies = with python3Packages; [ pygobject3 ];
61
62 dontWrapGApps = true;
63 makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
64
65 pythonImportsCheck = [ "showtime" ];
66
67 passthru = {
68 updateScript = nix-update-script { };
69 };
70
71 meta = {
72 description = "Watch without distraction";
73 homepage = "https://apps.gnome.org/Showtime";
74 license = lib.licenses.gpl3Plus;
75 maintainers = with lib.maintainers; [ getchoo ];
76 mainProgram = "showtime";
77 };
78}