nixpkgs/pkgs/by-name/sc/scanmem/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

62 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
gobject-introspection,
intltool,
wrapGAppsHook3,
procps,
python3,
readline,
}:
stdenv.mkDerivation rec {
pname = "scanmem";
version = "0.17";
src = fetchFromGitHub {
owner = "scanmem";
repo = "scanmem";
rev = "v${version}";
sha256 = "17p8sh0rj8yqz36ria5bp48c8523zzw3y9g8sbm2jwq7sc27i7s9";
};
nativeBuildInputs = [
autoreconfHook
gobject-introspection
intltool
wrapGAppsHook3
];
buildInputs = [
readline
python3
];
configureFlags = [ "--enable-gui" ];
# we don't need to wrap the main executable, just the GUI
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; {
homepage = "https://github.com/scanmem/scanmem";
description = "Memory scanner for finding and poking addresses in executing processes";
maintainers = [ ];
platforms = platforms.linux;
license = licenses.gpl3;
};
}