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
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nixosTests,
|
|
stdenv,
|
|
symlinkJoin,
|
|
}:
|
|
|
|
let
|
|
name = "multipass";
|
|
version = "1.16.1";
|
|
|
|
multipass_src = fetchFromGitHub {
|
|
owner = "canonical";
|
|
repo = "multipass";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DryVXuyAdjk+KhJZYqGh/r1H50rwM16vJ9igLtftgDY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
commonMeta = {
|
|
homepage = "https://multipass.run";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
|
|
multipassd = callPackage ./multipassd.nix {
|
|
inherit commonMeta multipass_src version;
|
|
};
|
|
|
|
multipass-gui = callPackage ./gui.nix {
|
|
inherit
|
|
commonMeta
|
|
multipass_src
|
|
multipassd
|
|
version
|
|
;
|
|
};
|
|
in
|
|
symlinkJoin {
|
|
inherit version;
|
|
pname = name;
|
|
|
|
paths = [
|
|
multipassd
|
|
multipass-gui
|
|
];
|
|
|
|
passthru = {
|
|
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
|
inherit (nixosTests) multipass;
|
|
};
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
meta = commonMeta // {
|
|
description = "Ubuntu VMs on demand for any workstation";
|
|
};
|
|
}
|