forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lima package, update qemu to make it usable (spack#46893)
adds the lima-vm project, in order to make that useful adds a newer version of qemu so qemu VMs can work, and builds qemu with flags that allow it to do things like give the VMs networking and virtfs filesystems. Also adds vde as a dependency of qemu.
- Loading branch information
Showing
3 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
|
||
|
||
class Lima(Package): | ||
"""Linux virtual machines, with a focus on running containers""" | ||
|
||
homepage = "https://lima-vm.io" | ||
url = "https://github.com/lima-vm/lima/archive/refs/tags/v0.23.2.tar.gz" | ||
|
||
maintainers("trws") | ||
|
||
license("Apache-2.0", checked_by="trws") | ||
|
||
version("0.23.2", sha256="fc21295f78d717efc921f8f6d1ec22f64da82bfe685d0d2d505aee76c53da1ff") | ||
|
||
depends_on("qemu@9:") | ||
depends_on("go@1.22.0:") | ||
|
||
# NOTE: in truth this is a go build, it fetches many go packages during this build | ||
# process, but at least uses the built qemu and local vz on macos | ||
def install(self, spec, prefix): | ||
make() | ||
make("install", f"DESTDIR={prefix}", "PREFIX=") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
|
||
|
||
class Vde(AutotoolsPackage): | ||
"""Ethernet compliant virtual network""" | ||
|
||
homepage = "https://github.com/virtualsquare/vde-2" | ||
url = "https://github.com/virtualsquare/vde-2/archive/refs/tags/v2.3.3.tar.gz" | ||
|
||
license("GPL-2.0-or-later AND LGPL-2.1-or-later", checked_by="trws") | ||
|
||
version("2.3.3", sha256="a7d2cc4c3d0c0ffe6aff7eb0029212f2b098313029126dcd12dc542723972379") | ||
|
||
depends_on("c", type="build") | ||
depends_on("cxx", type="build") | ||
|
||
depends_on("autoconf", type="build") | ||
depends_on("automake", type="build") | ||
depends_on("libtool", type="build") | ||
depends_on("m4", type="build") | ||
|
||
def autoreconf(self, spec, prefix): | ||
autoreconf("--install", "--verbose") |