Merge pull request #279618 from zebreus/init-med

med: init at 3.10.1
This commit is contained in:
Martin Weinelt 2024-03-23 02:23:17 +01:00 committed by GitHub
commit 258485293f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,30 @@
{ stdenv, lib, qt6, fetchFromGitHub, cmake, pkg-config, jsoncpp, readline }:
stdenv.mkDerivation rec {
pname = "med";
version = "3.10.1";
src = fetchFromGitHub {
owner = "allencch";
repo = "med";
rev = version;
sha256 = "sha256-m2lVRSNaklB0Xfqgtyc0lNWXfTD8wTWsE06eGv4FOBE=";
};
nativeBuildInputs = [ qt6.wrapQtAppsHook cmake pkg-config ];
buildInputs = [ qt6.qtbase qt6.qttools qt6.qtwayland jsoncpp readline ];
postPatch = ''
find . -type f -exec sed -i "s|/opt/med|$out/share/med|g" {} +
'';
meta = with lib; {
description = "GUI game memory scanner and editor";
homepage = "https://github.com/allencch/med";
changelog = "https://github.com/allencch/med/releases/tag/${version}";
maintainers = with maintainers; [ zebreus ];
platforms = platforms.linux;
license = licenses.bsd3;
mainProgram = "med";
};
}