Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add muvm to nixpkgs #251

Open
liyderek opened this issue Nov 21, 2024 · 2 comments
Open

Add muvm to nixpkgs #251

liyderek opened this issue Nov 21, 2024 · 2 comments

Comments

@liyderek
Copy link

Hey I would appreciate it if muvm was added to nixpkgs... I got it working with this config:

{
  pkgs,
  lib,
  rustPlatform,
  fetchFromGitHub,
}:
let
  libkrun-muvm = pkgs.libkrun.overrideAttrs (old: {
    makeFlags = (old.makeFlags or [ ]) ++ [ "BLK=1" ];
  });
in
rustPlatform.buildRustPackage rec {
  pname = "muvm";
  version = "0.1.3";

  src = fetchFromGitHub {
    owner = "AsahiLinux";
    repo = "muvm";
    rev = "muvm-${version}";
    hash = "sha256-K/Yhc/qYUhMlIOPF37O5n+60uSb1+vUJvYLH+WOjph0=";
  };

  cargoHash = "sha256-waaEnkJo47E/nvTphW1nGBjwZ8/iG3MtdbegPjp8VM4=";

  buildInputs = [
    libkrun-muvm
  ];

  nativeBuildInputs = [
    rustPlatform.bindgenHook
  ];

  meta = {
    description = "Muvm - run programs from your system in a microVM";
    homepage = "https://github.com/AsahiLinux/muvm";
    license = lib.licenses.unfree; # FIXME: nix-init did not find a license
    maintainers = with lib.maintainers; [ ];
    mainProgram = "muvm";
  };
}
@flokli
Copy link
Contributor

flokli commented Nov 22, 2024

@bruhderek can you open a (draft) PR in nixpkgs? That'd probably be the right place to have this - we also moved some somewhat asahi-specific packages to there, like speakersafetyd, and it's definitely easier to give feedback too.

@diegobfernandez
Copy link

For reference: NixOS/nixpkgs#347792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants