12 # The icon is also from the winbox AUR package (see above).
15 url = "https://aur.archlinux.org/cgit/aur.git/plain/winbox.png?h=winbox";
16 hash = "sha256-YD6u2N+1thRnEsXO6AHm138fRda9XEtUX5+EGTg004A=";
19 stdenvNoCC.mkDerivation (finalAttrs: {
24 if (wine.meta.mainProgram == "wine64") then
26 url = "https://download.mikrotik.com/routeros/winbox/${finalAttrs.version}/winbox64.exe";
27 hash = "sha256-i8Ps8fNZUmAOyxo4DDjIjp1jwIGjIgT9CU1YgjAHC/Y=";
31 url = "https://download.mikrotik.com/routeros/winbox/${finalAttrs.version}/winbox.exe";
32 hash = "sha256-NypSEC5YKpqldlkSIRFtWVD4xJZcjGcfjnphSg70wmE=";
46 mkdir -p $out/{bin,libexec,share/pixmaps}
48 ln -s "${icon}" "$out/share/pixmaps/winbox.png"
50 makeWrapper ${lib.getExe wine} $out/bin/winbox \
59 desktopName = "Winbox";
60 comment = "GUI administration for Mikrotik RouterOS";
63 categories = [ "Utility" ];
68 description = "Graphical configuration utility for RouterOS-based devices";
69 homepage = "https://mikrotik.com";
70 downloadPage = "https://mikrotik.com/download";
71 changelog = "https://wiki.mikrotik.com/wiki/Winbox_changelog";
72 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
73 license = lib.licenses.unfree;
74 mainProgram = "winbox";
75 maintainers = with lib.maintainers; [ yrd ];