From e96d25d7c282b6b0cea7a68908fb00f08d619b82 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Thu, 7 Nov 2024 21:39:56 +0100 Subject: [PATCH] mangojuice: init at 0.7.8 --- pkgs/by-name/ma/mangojuice/package.nix | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pkgs/by-name/ma/mangojuice/package.nix diff --git a/pkgs/by-name/ma/mangojuice/package.nix b/pkgs/by-name/ma/mangojuice/package.nix new file mode 100644 index 00000000000000..5b6199b3614c9c --- /dev/null +++ b/pkgs/by-name/ma/mangojuice/package.nix @@ -0,0 +1,64 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + cmake, + vala, + pkg-config, + makeBinaryWrapper, + + gtk4, + libadwaita, + glib, + libgee, + + mangohud, + mesa-demos, + vulkan-tools, +}: +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 + cmake + vala + pkg-config + makeBinaryWrapper + ]; + + buildInputs = [ + gtk4 + libadwaita + glib + mangohud + libgee + ]; + + postFixup = let + path = lib.makeBinPath [ mangohud mesa-demos vulkan-tools ]; + in + '' + wrapProgram $out/bin/mangojuice \ + --prefix PATH : ${path} + ''; + + 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 ]; + }; +})