2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, dotnetCorePackages
|
2024-04-21 15:54:59 +00:00
|
|
|
, dotnet-runtime_8
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libglvnd
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "mqttmultimeter";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.8.2.272";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chkr1011";
|
|
|
|
repo = "mqttMultimeter";
|
|
|
|
rev = "v" + version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-vL9lmIhNLwuk1tmXLKV75xAhktpdNOb0Q4ZdvLur5hw=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/Source";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
projectFile = [ "mqttMultimeter.sln" ];
|
|
|
|
nugetDeps = ./deps.nix;
|
2024-04-21 15:54:59 +00:00
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
|
|
dotnet-runtime = dotnet-runtime_8;
|
2023-07-15 17:15:38 +00:00
|
|
|
executables = [ "mqttMultimeter" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
buildInputs = [ stdenv.cc.cc.lib ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/lib/${lib.toLower pname}/runtimes/{*musl*,win*}
|
|
|
|
'';
|
|
|
|
|
|
|
|
runtimeDeps = [
|
|
|
|
libglvnd
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = meta.mainProgram;
|
|
|
|
exec = meta.mainProgram;
|
|
|
|
icon = meta.mainProgram;
|
|
|
|
desktopName = meta.mainProgram;
|
|
|
|
genericName = meta.description;
|
|
|
|
comment = meta.description;
|
|
|
|
type = "Application";
|
|
|
|
categories = [ "Network" ];
|
|
|
|
startupNotify = true;
|
|
|
|
})
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = builtins.head executables;
|
|
|
|
description = "MQTT traffic monitor";
|
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|