krunvm: init at 0.2.1

This commit is contained in:
Nick Cao 2022-08-13 17:43:27 +08:00
parent 412a17da66
commit 0edab34d9c
No known key found for this signature in database
GPG Key ID: 068A56CEF48FA2C1
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, asciidoctor
, libkrun
}:
stdenv.mkDerivation rec {
pname = "krunvm";
version = "0.2.1";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "sha256-rR762L8P+7ebE0u4MVCJoXc5mmqXlDFfSas+lFBMVFQ=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
hash = "sha256-3WiXm90XiQHpCbhlkigg/ZATQeDdUKTstN7hwcsKm4o=";
};
nativeBuildInputs = with rustPlatform;[
cargoSetupHook
rust.cargo
rust.rustc
asciidoctor
];
buildInputs = [ libkrun ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "A CLI-based utility for creating microVMs from OCI images";
homepage = "https://github.com/containers/krunvm";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
};
}

View File

@ -7857,6 +7857,8 @@ with pkgs;
krunner-pass = libsForQt5.callPackage ../tools/security/krunner-pass { };
krunvm = callPackage ../applications/virtualization/krunvm { };
kronometer = libsForQt5.callPackage ../tools/misc/kronometer { };
krop = callPackage ../applications/graphics/krop { };