Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
stdenvNoCC,
|
|
}:
|
|
let
|
|
pname = "winbox";
|
|
version = "4.0beta30";
|
|
|
|
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-/o9ErRY8/b4IkfyDxVjOb5TamninybyR4xvijszpDd0=";
|
|
};
|
|
|
|
x86_64-dmg = callPackage ./build-from-dmg.nix {
|
|
inherit pname version metaCommon;
|
|
|
|
hash = "sha256-wSwUvCyr5Q0B6I8zfACvVszPG+EvNEk/MEFYaMLa9dY=";
|
|
};
|
|
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";
|
|
};
|
|
})
|