2023-07-17 19:07:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, gobject-introspection
|
|
|
|
, intltool
|
|
|
|
, wrapGAppsHook
|
|
|
|
, procps
|
|
|
|
, python3
|
|
|
|
, readline
|
|
|
|
}:
|
2015-08-23 07:54:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "scanmem";
|
2023-07-17 19:07:43 +00:00
|
|
|
version = "0.17";
|
2018-01-20 16:06:23 +00:00
|
|
|
|
2015-08-23 07:54:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scanmem";
|
|
|
|
repo = "scanmem";
|
|
|
|
rev = "v${version}";
|
2018-01-20 16:06:23 +00:00
|
|
|
sha256 = "17p8sh0rj8yqz36ria5bp48c8523zzw3y9g8sbm2jwq7sc27i7s9";
|
2015-08-23 07:54:13 +00:00
|
|
|
};
|
2017-03-03 02:13:55 +00:00
|
|
|
|
2023-07-17 19:07:43 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gobject-introspection intltool wrapGAppsHook ];
|
|
|
|
buildInputs = [ readline python3 ];
|
|
|
|
configureFlags = ["--enable-gui"];
|
|
|
|
|
|
|
|
# we don't need to wrap the main executable, just the GUI
|
|
|
|
dontWrapGApps = true;
|
2018-01-20 16:06:23 +00:00
|
|
|
|
2023-07-17 19:07:43 +00:00
|
|
|
fixupPhase = ''
|
|
|
|
runHook preFixup
|
|
|
|
|
|
|
|
# replace the upstream launcher which does stupid things
|
|
|
|
# also add procps because it shells out to `ps` and expects it to be procps
|
|
|
|
makeWrapper ${python3}/bin/python3 $out/bin/gameconqueror \
|
|
|
|
"''${gappsWrapperArgs[@]}" \
|
|
|
|
--set PYTHONPATH "${python3.pkgs.makePythonPath [ python3.pkgs.pygobject3 ]}" \
|
|
|
|
--prefix PATH : "${procps}/bin" \
|
|
|
|
--add-flags "$out/share/gameconqueror/GameConqueror.py"
|
|
|
|
|
|
|
|
runHook postFixup
|
2015-08-23 07:54:13 +00:00
|
|
|
'';
|
2023-07-17 19:07:43 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/scanmem/scanmem";
|
2015-08-23 07:54:13 +00:00
|
|
|
description = "Memory scanner for finding and poking addresses in executing processes";
|
2022-06-22 23:54:27 +00:00
|
|
|
maintainers = [ ];
|
2017-04-09 06:29:41 +00:00
|
|
|
platforms = platforms.linux;
|
2017-03-03 02:13:55 +00:00
|
|
|
license = licenses.gpl3;
|
2015-08-23 07:54:13 +00:00
|
|
|
};
|
|
|
|
}
|