Merge pull request #293535 from Aleksanaa/glide-media-player

glide-media-player: 0.6.1 -> 0.6.2
This commit is contained in:
Jon Seager 2024-03-06 12:37:19 +00:00 committed by GitHub
commit 9c1b977123
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,25 +19,29 @@
stdenv.mkDerivation rec {
pname = "glide-media-player";
version = "0.6.1";
version = "0.6.2";
src = fetchFromGitHub {
owner = "philn";
repo = "glide";
rev = version;
hash = "sha256-dIXuWaoTeyVBhzr6VWxYBsn+CnUYG/KzhzNJtLLdRuI=";
hash = "sha256-SN/1Yf4fHlDbJ2X6DGktsn1GFW8bbkeznlO1S8sBZyg=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-azvxW40fuKuF/N0qwzofFk1bZiNxyTN6YBFU5qHQkCA=";
hash = "sha256-2Ma7ZAKFiAQXFWFze4RLwGu33d/vC6FVW6fJdqwED20=";
};
postPatch = ''
substituteInPlace scripts/meson_post_install.py \
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
patchShebangs --build scripts/meson_post_install.py
--replace-warn "gtk-update-icon-cache" "gtk4-update-icon-cache"
substituteInPlace data/net.baseart.Glide.desktop \
--replace-warn "Icon=net.baseart.Glide.svg" "Icon=net.baseart.Glide"
patchShebangs --build \
scripts/meson_post_install.py \
build-aux/cargo-build.py
'' + lib.optionalString stdenv.isDarwin ''
sed -i "/wayland,x11egl,x11glx/d" meson.build
'';