Add memtool program to test the memory

This commit is contained in:
2024-07-09 15:15:35 +02:00
parent 82630f3eef
commit f617efdcac
4 changed files with 142 additions and 1 deletions

View File

@@ -53,6 +53,22 @@ final: prev:
'';
};
memtool = prev.pkgsStatic.stdenv.mkDerivation {
name = "memtool";
src = ./memtool.c;
unpackPhase = ''
cp ${./memtool.c} memtool.c
'';
dontConfigure = true;
buildPhase = ''
$CC -static memtool.c -o memtool
'';
installPhase = ''
mkdir -p $out/bin
cp memtool $out/bin/
'';
};
bitstreams = builtins.fetchGit {
url = "git@bscpm03.bsc.es:rarias/bitstreams.git";
rev = "ad901b0c21ffbdb310ff1dfb269f169f6ac6bde6";