chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / gl / glide-media-player / package.nix
blobeca436d6859138123fb3066e7307eb0caa458de9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , pkg-config
6 , meson
7 , ninja
8 , rustc
9 , cargo
10 , wrapGAppsHook4
11 , python3
12 , libadwaita
13 , graphene
14 , gst_all_1
15 , glib-networking
18 stdenv.mkDerivation rec {
19   pname = "glide-media-player";
20   version = "0.6.5";
22   src = fetchFromGitHub {
23     owner = "philn";
24     repo = "glide";
25     rev = version;
26     hash = "sha256-gmBXUj6LxC7VDH/ni8neYivysagqcbI/UCUq9Ly3D24=";
27   };
29   cargoDeps = rustPlatform.fetchCargoTarball {
30     inherit src;
31     name = "${pname}-${version}";
32     hash = "sha256-u41H746/nPX2PmpyweUp4Y9k+XIruazgMdU6B4ig708=";
33   };
35   postPatch = ''
36     substituteInPlace scripts/meson_post_install.py \
37       --replace-warn "gtk-update-icon-cache" "gtk4-update-icon-cache"
38     substituteInPlace data/net.base_art.Glide.desktop \
39       --replace-warn "Icon=net.base_art.Glide.svg" "Icon=net.baseart.Glide"
40     patchShebangs --build \
41       scripts/meson_post_install.py \
42       build-aux/cargo-build.py
43   '';
45   nativeBuildInputs = [
46     pkg-config
47     meson
48     ninja
49     rustPlatform.cargoSetupHook
50     rustc
51     cargo
52     wrapGAppsHook4
53     python3
54   ];
56   buildInputs = [
57     libadwaita
58     graphene
59     gst_all_1.gstreamer
60     gst_all_1.gst-plugins-base
61     gst_all_1.gst-plugins-bad
62     gst_all_1.gst-plugins-good
63     glib-networking
64   ];
66   meta = with lib; {
67     description = "Linux/macOS media player based on GStreamer and GTK";
68     homepage = "https://philn.github.io/glide";
69     license = licenses.mit;
70     maintainers = with maintainers; [ aleksana ];
71     mainProgram = "glide";
72     # Required gdk4-{wayland,x11} and gstreamer-gl not available on darwin
73     platforms = subtractLists platforms.darwin platforms.unix;
74   };