11 , opengl-driver ? mesa.drivers
12 , withSommelier ? false
15 rustPlatform.buildRustPackage rec {
17 version = "0-unstable-2024-06-18";
19 src = fetchFromGitHub {
22 rev = "912afa5c6525b7c8f83dffd65ec4b1425b3f7521";
23 hash = "sha256-rDuxv3UakAemDnj4Nsbpqsykts2IcseuQmDwO24L+u8=";
28 url = "https://github.com/slp/krun/pull/39.diff";
29 hash = "sha256-CV69L+VDDLRcWgpgDCAYKLlTU9ytFcHhzNgOibWD8KY=";
32 url = "https://github.com/slp/krun/pull/38.diff";
33 hash = "sha256-cK3iDhh+33H16V65lWUXahjmpSxI1HhiLUmkjfkRB7A=";
37 cargoHash = "sha256-NahnigxJaY2QwWnySCRrnf3JyqZ+7jRA1CpE7ON0OOE=";
40 rustPlatform.bindgenHook
51 # Allow for sommelier to be disabled as it can cause problems.
53 "--prefix PATH : ${lib.makeBinPath (lib.optional withSommelier [ sommelier ] ++ [ passt ])}"
57 wrapProgram $out/bin/krun $wrapArgs \
58 --set-default OPENGL_DRIVER ${opengl-driver}
62 description = "Run programs from your system in a microVM";
63 homepage = "https://github.com/slp/krun";
64 license = lib.licenses.mit;
65 maintainers = with lib.maintainers; [ RossComputerGuy ];
66 platforms = libkrun.meta.platforms;