2021-02-13 14:23:35 +00:00
|
|
|
{ stdenv, lib, fetchzip, substituteAll, bash, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bonnmotion";
|
|
|
|
version = "3.0.1";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://sys.cs.uos.de/bonnmotion/src/bonnmotion-${version}.zip";
|
|
|
|
sha256 = "16bjgr0hy6an892m5r3x9yq6rqrl11n91f9rambq5ik1cxjqarxw";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# The software has a non-standard install bash script which kind of works.
|
|
|
|
# However, to make it fully functional, the automatically detection of the
|
|
|
|
# program paths must be substituted with full paths.
|
|
|
|
(substituteAll {
|
|
|
|
src = ./install.patch;
|
|
|
|
inherit bash jre;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
./install
|
|
|
|
|
|
|
|
mkdir -p $out/bin $out/share/bonnmotion
|
|
|
|
cp -r ./classes ./lib $out/share/bonnmotion/
|
|
|
|
cp ./bin/bm $out/bin/
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/bm \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail "$PWD" $out/share/bonnmotion
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Mobility scenario generation and analysis tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bm";
|
2021-02-13 14:23:35 +00:00
|
|
|
longDescription = ''
|
|
|
|
BonnMotion is a Java software which creates and analyzes mobility
|
|
|
|
scenarios and is most commonly used as a tool for the investigation of
|
|
|
|
mobile ad hoc network characteristics. The scenarios can also be exported
|
|
|
|
for several network simulators, such as ns-2, ns-3, GloMoSim/QualNet,
|
|
|
|
COOJA, MiXiM, and ONE.
|
|
|
|
'';
|
|
|
|
homepage = "https://sys.cs.uos.de/bonnmotion/";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryBytecode # source bundles dependency jars
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ oxzi ];
|
|
|
|
};
|
|
|
|
}
|