apps: vfkit and podman
This commit is contained in:
parent
2421d0e06c
commit
4eb3973ce7
@ -1,4 +1,7 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
vfkit = pkgs.callPackage ../packages/vfkit.nix {};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
@ -283,6 +286,9 @@
|
|||||||
# Use a custom configuration.nix location.
|
# Use a custom configuration.nix location.
|
||||||
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
||||||
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
||||||
|
environment.systemPackages = [
|
||||||
|
vfkit
|
||||||
|
];
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
# Auto upgrade nix package and the daemon service.
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
|
6
nix/base-system/flake.lock
generated
6
nix/base-system/flake.lock
generated
@ -1116,11 +1116,11 @@
|
|||||||
},
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1706367331,
|
"lastModified": 1718870667,
|
||||||
"narHash": "sha256-AqgkGHRrI6h/8FWuVbnkfFmXr4Bqsr4fV23aISqj/xg=",
|
"narHash": "sha256-jab3Kpc8O1z3qxwVsCMHL4+18n5Wy/HHKyu1fcsF7gs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "160b762eda6d139ac10ae081f8f78d640dd523eb",
|
"rev": "9b10b8f00cb5494795e5f51b39210fed4d2b0748",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -252,6 +252,7 @@ EOF";
|
|||||||
durnitisp = durnitisp;
|
durnitisp = durnitisp;
|
||||||
clio = clio;
|
clio = clio;
|
||||||
victoria-logs = pkgs.callPackage ../packages/victoria-logs.nix { };
|
victoria-logs = pkgs.callPackage ../packages/victoria-logs.nix { };
|
||||||
|
podman = unstablePkgs.podman;
|
||||||
})
|
})
|
||||||
rust-overlay
|
rust-overlay
|
||||||
];
|
];
|
||||||
@ -306,6 +307,7 @@ EOF";
|
|||||||
ghidra
|
ghidra
|
||||||
#podman-desktop # Broken on darwin right now with electron build issues.
|
#podman-desktop # Broken on darwin right now with electron build issues.
|
||||||
# Note that podman expects qemu to be installed in order to use the podman machine setup.
|
# Note that podman expects qemu to be installed in order to use the podman machine setup.
|
||||||
|
podman
|
||||||
qemu
|
qemu
|
||||||
lima
|
lima
|
||||||
rlwrap
|
rlwrap
|
||||||
|
39
nix/packages/vfkit.nix
Normal file
39
nix/packages/vfkit.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib, fetchurl, stdenvNoCC, testers }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
|
pname = "vfkit";
|
||||||
|
version = "0.5.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/crc-org/vfkit/releases/download/v${finalAttrs.version}/vfkit";
|
||||||
|
hash = "sha256-at+KsvsKO359d4VUvcSuio2ej5hM6//U4Mj/jqXwhEc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm755 $src $out/bin/vfkit
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testers.testVersion {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Simple command line tool to start VMs through virtualization framework";
|
||||||
|
homepage = "https://github.com/crc-org/vfkit";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = [ ];
|
||||||
|
platforms = lib.platforms.darwin;
|
||||||
|
# Source build will be possible after darwin SDK 12.0 bump
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/229210
|
||||||
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
||||||
|
mainProgram = "vfkit";
|
||||||
|
};
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user