gdbgui: reorder

This commit is contained in:
Timo Gottszky
2026-06-14 11:26:56 +02:00
parent 6d28be340f
commit e98de26446
+11 -12
View File
@@ -7,10 +7,20 @@
python3Packages.buildPythonApplication (finalAttrs: {
pname = "gdbgui";
version = "0.15.3.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-/HyFE0JnoN03CDyCQCo/Y9RyH4YOMoeB7khReIb8t7Y=";
};
postPatch = ''
echo ${finalAttrs.version} > gdbgui/VERSION.txt
# relax version requirements
sed -i 's/==.*$//' requirements.txt
'';
build-system = with python3Packages; [ setuptools ];
buildInputs = [ gdb ];
@@ -23,17 +33,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
pygments
];
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-/HyFE0JnoN03CDyCQCo/Y9RyH4YOMoeB7khReIb8t7Y=";
};
postPatch = ''
echo ${finalAttrs.version} > gdbgui/VERSION.txt
# relax version requirements
sed -i 's/==.*$//' requirements.txt
'';
postInstall = ''
wrapProgram $out/bin/gdbgui \
--prefix PATH : ${lib.makeBinPath [ gdb ]}