Unverified Commit 8d568e70 authored by dabao1955's avatar dabao1955
Browse files

ruri: init at 3.8

parent 7304599c
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})