nixpkgs/pkgs/applications/virtualization/youki/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-09 01:10:27 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, dbus
, libseccomp
, systemd
}:
rustPlatform.buildRustPackage rec {
pname = "youki";
2023-03-30 20:48:06 +00:00
version = "0.0.5";
2023-01-09 01:10:27 +00:00
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
2023-03-30 20:48:06 +00:00
sha256 = "sha256-00eSXRPy0lQKEabl569gY770viPyB2sEnq1uaT3peE0=";
2023-01-09 01:10:27 +00:00
};
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" ];
2023-03-30 20:48:06 +00:00
cargoSha256 = "sha256-9EgexnsxHxLTXGRbUJZtJEoCeD425zRLfCiIqrXQJkU=";
2023-01-09 01:10:27 +00:00
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;
2023-04-05 00:29:57 +00:00
maintainers = [];
2023-01-09 01:10:27 +00:00
platforms = platforms.linux;
};
}