nixpkgs/pkgs/by-name/me/med/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

31 lines
878 B
Nix

{ 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;
hash = "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";
};
}