Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-24.11] mangojuice: init at 0.7.8 #363683

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions pkgs/by-name/ma/mangojuice/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
vala,
pkg-config,
makeBinaryWrapper,

gtk4,
libadwaita,
glib,
libgee,

mangohud,
mesa-demos,
vulkan-tools,

nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mangojuice";
version = "0.7.8";

src = fetchFromGitHub {
owner = "radiolamp";
repo = "mangojuice";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-EWpXikyO7N2NjONqnTx8+9w16Pt5ne7qX67bYirShjc=";
};

nativeBuildInputs = [
meson
ninja
glib # For glib-compile-schemas
vala
pkg-config
makeBinaryWrapper
];

buildInputs = [
gtk4
libadwaita
glib
libgee
];

strictDeps = true;

postFixup =
let
path = lib.makeBinPath [
mangohud
mesa-demos
vulkan-tools
];
in
''
wrapProgram $out/bin/mangojuice \
--prefix PATH : ${path}
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Convenient alternative to GOverlay for setting up MangoHud";
homepage = "https://github.com/radiolamp/mangojuice";
license = with lib.licenses; [ gpl3Only ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
pluiedev
getchoo
];
};
})
Loading