diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-03-24 00:14:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 00:14:19 +0000 |
commit | 31a14cb69ecad9f7e98605f349368314f90abc18 (patch) | |
tree | e21363787b08e9ea05a7c08094222fdbeaa64f8f /pkgs/by-name/me/med/package.nix | |
parent | c774347c25bf4c7e0a47e84dcbe18ca2bb9363a6 (diff) | |
parent | 79863957ca9002b96ab3e107e8cfffbd49980e12 (diff) |
Merge master into haskell-updates
Diffstat (limited to 'pkgs/by-name/me/med/package.nix')
-rw-r--r-- | pkgs/by-name/me/med/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/me/med/package.nix b/pkgs/by-name/me/med/package.nix new file mode 100644 index 0000000000000..5edc2e3201bdd --- /dev/null +++ b/pkgs/by-name/me/med/package.nix @@ -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"; + }; +} |