nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 965 B view raw
1{ 2 stdenv, 3 lib, 4 qt6, 5 fetchFromGitHub, 6 cmake, 7 pkg-config, 8 jsoncpp, 9 readline, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "med"; 14 version = "3.10.1"; 15 16 src = fetchFromGitHub { 17 owner = "allencch"; 18 repo = "med"; 19 rev = finalAttrs.version; 20 hash = "sha256-m2lVRSNaklB0Xfqgtyc0lNWXfTD8wTWsE06eGv4FOBE="; 21 }; 22 23 nativeBuildInputs = [ 24 qt6.wrapQtAppsHook 25 cmake 26 pkg-config 27 ]; 28 buildInputs = [ 29 qt6.qtbase 30 qt6.qttools 31 qt6.qtwayland 32 jsoncpp 33 readline 34 ]; 35 36 postPatch = '' 37 find . -type f -exec sed -i "s|/opt/med|$out/share/med|g" {} + 38 ''; 39 40 meta = { 41 description = "GUI game memory scanner and editor"; 42 homepage = "https://github.com/allencch/med"; 43 changelog = "https://github.com/allencch/med/releases/tag/${finalAttrs.version}"; 44 maintainers = with lib.maintainers; [ zebreus ]; 45 platforms = lib.platforms.linux; 46 license = lib.licenses.bsd3; 47 mainProgram = "med"; 48 }; 49})