504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, installShellFiles
|
|
, dbus
|
|
, libseccomp
|
|
, systemd
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "youki";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-XoHGRCGLEG/a6gb+3ejYoeOuIml64U/p6CcxsFLoTWY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ dbus libseccomp systemd ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd youki \
|
|
--bash <($out/bin/youki completion -s bash) \
|
|
--fish <($out/bin/youki completion -s fish) \
|
|
--zsh <($out/bin/youki completion -s zsh)
|
|
'';
|
|
|
|
cargoBuildFlags = [ "-p" "youki" ];
|
|
cargoTestFlags = [ "-p" "youki" ];
|
|
|
|
cargoHash = "sha256-L5IhOPo8BDQAvaSs3IJzJHN0TbgmUcEyv60IDLN4kn0=";
|
|
|
|
meta = with lib; {
|
|
description = "A container runtime written in Rust";
|
|
homepage = "https://containers.github.io/youki/";
|
|
changelog = "https://github.com/containers/youki/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = [];
|
|
platforms = platforms.linux;
|
|
mainProgram = "youki";
|
|
};
|
|
}
|