18 stdenv.mkDerivation rec {
19 pname = "glide-media-player";
22 src = fetchFromGitHub {
26 hash = "sha256-gmBXUj6LxC7VDH/ni8neYivysagqcbI/UCUq9Ly3D24=";
29 cargoDeps = rustPlatform.fetchCargoTarball {
31 name = "${pname}-${version}";
32 hash = "sha256-u41H746/nPX2PmpyweUp4Y9k+XIruazgMdU6B4ig708=";
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
49 rustPlatform.cargoSetupHook
60 gst_all_1.gst-plugins-base
61 gst_all_1.gst-plugins-bad
62 gst_all_1.gst-plugins-good
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;