Merge pull request #209617 from candyc1oud/youki

youki: init at 0.0.4
This commit is contained in:
figsoda 2023-01-08 20:49:56 -05:00 committed by GitHub
commit 4a26f8d27d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, dbus
, libseccomp
, systemd
}:
rustPlatform.buildRustPackage rec {
pname = "youki";
version = "0.0.4";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XwapCfu6Me0xSe+qFz9BFRYpQvG+ztb6QyhGejYRPb4=";
};
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" ];
cargoSha256 = "sha256-PT1kVo4gQFH9sIprEoAioNvDL/soMHcA2utEiQJPS/0=";
doCheck = false; # test failed
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 = with maintainers; [ candyc1oud ];
platforms = platforms.linux;
};
}

View file

@ -33726,6 +33726,8 @@ with pkgs;
youtube-music = callPackage ../applications/audio/youtube-music { }; youtube-music = callPackage ../applications/audio/youtube-music { };
youki = callPackage ../applications/virtualization/youki { };
yt-dlp = with python3Packages; toPythonApplication yt-dlp; yt-dlp = with python3Packages; toPythonApplication yt-dlp;
yt-dlp-light = with python3Packages; toPythonApplication yt-dlp-light; yt-dlp-light = with python3Packages; toPythonApplication yt-dlp-light;