blob: ed39092e3688ac8ce9a5092c2119454e205d91dd (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 ];
};
})
|