ruri: init at 3.8 (#398079)

This commit is contained in:
Thiago Kenji Okada
2025-04-19 18:06:59 +01:00
committed by GitHub
2 changed files with 48 additions and 0 deletions
+6
View File
@@ -5274,6 +5274,12 @@
github = "d4rkstar";
githubId = 4957015;
};
dabao1955 = {
email = "dabao1955@163.com";
github = "dabao1955";
githubId = 79307765;
name = "Hang Li";
};
dadada = {
name = "dadada";
email = "dadada@dadada.li";
+42
View File
@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
libcap,
libseccomp,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ruri";
version = "3.8";
src = fetchFromGitHub {
owner = "Moe-hacker";
repo = "ruri";
rev = "v${finalAttrs.version}";
fetchSubmodules = false;
sha256 = "sha256-gf+WJPGeLbMntBk8ryTSsV9L4J3N4Goh9eWBIBj5FA4=";
};
buildInputs = [
libcap
libseccomp
];
installPhase = ''
runHook preInstall
install -Dm755 ruri $out/bin/ruri
runHook postInstall
'';
meta = {
description = "Self-contained Linux container implementation";
homepage = "https://wiki.crack.moe/ruri";
downloadPage = "https://github.com/Moe-hacker/ruri";
changelog = "https://github.com/Moe-hacker/ruri/releases/tag/v${finalAttrs.version}";
mainProgram = "ruri";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.dabao1955 ];
};
})