2025-07-21 15:46:48 +02:00

42 lines
1.1 KiB
Nix

{
lib,
callPackage,
stdenvNoCC,
}:
let
pname = "winbox";
version = "4.0beta26";
metaCommon = {
description = "Graphical configuration utility for RouterOS-based devices";
homepage = "https://mikrotik.com";
downloadPage = "https://mikrotik.com/download";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
mainProgram = "WinBox";
maintainers = with lib.maintainers; [
Scrumplex
yrd
savalet
];
};
x86_64-zip = callPackage ./build-from-zip.nix {
inherit pname version metaCommon;
hash = "sha256-m0+ofS1j6NaGW5ArldAn2dLUh0hfxtvEIRdRMKA1vc4=";
};
x86_64-dmg = callPackage ./build-from-dmg.nix {
inherit pname version metaCommon;
hash = "sha256-3IrRDdNHzGyqLc2Ba5+WIpDN9CyCUvC8Q8Y0hMFazBk=";
};
in
(if stdenvNoCC.hostPlatform.isDarwin then x86_64-dmg else x86_64-zip).overrideAttrs (oldAttrs: {
meta = oldAttrs.meta // {
platforms = x86_64-zip.meta.platforms ++ x86_64-dmg.meta.platforms;
mainProgram = "WinBox";
changelog = "https://download.mikrotik.com/routeros/winbox/${oldAttrs.version}/CHANGELOG";
};
})