scanmem: enable GUI, some drive-by cleanups
This commit is contained in:
parent
6cee3b5893
commit
050cb73148
|
@ -1,8 +1,18 @@
|
||||||
{ lib, stdenv, autoconf, automake, intltool, libtool, fetchFromGitHub, readline }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, gobject-introspection
|
||||||
|
, intltool
|
||||||
|
, wrapGAppsHook
|
||||||
|
, procps
|
||||||
|
, python3
|
||||||
|
, readline
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.17";
|
|
||||||
pname = "scanmem";
|
pname = "scanmem";
|
||||||
|
version = "0.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "scanmem";
|
owner = "scanmem";
|
||||||
|
@ -11,12 +21,27 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "17p8sh0rj8yqz36ria5bp48c8523zzw3y9g8sbm2jwq7sc27i7s9";
|
sha256 = "17p8sh0rj8yqz36ria5bp48c8523zzw3y9g8sbm2jwq7sc27i7s9";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake intltool libtool ];
|
nativeBuildInputs = [ autoreconfHook gobject-introspection intltool wrapGAppsHook ];
|
||||||
buildInputs = [ readline ];
|
buildInputs = [ readline python3 ];
|
||||||
|
configureFlags = ["--enable-gui"];
|
||||||
|
|
||||||
preConfigure = ''
|
# we don't need to wrap the main executable, just the GUI
|
||||||
./autogen.sh
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/scanmem/scanmem";
|
homepage = "https://github.com/scanmem/scanmem";
|
||||||
description = "Memory scanner for finding and poking addresses in executing processes";
|
description = "Memory scanner for finding and poking addresses in executing processes";
|
||||||
|
|
Loading…
Reference in a new issue