tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ruri: 3.8 -> 3.9.1
Sizhe Zhao
5 months ago
76a2fc6e
5eab330e
+33
-11
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ru
ruri
cmake-install.patch
package.nix
+20
pkgs/by-name/ru/ruri/cmake-install.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
--- a/CMakeLists.txt
2
+
+++ b/CMakeLists.txt
3
+
@@ -201,7 +201,7 @@
4
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
6
+
add_library(ruri SHARED ${SOURCES})
7
+
- install (TARGETS ruri DESTINATION /usr/lib/)
8
+
+ install (TARGETS ruri)
9
+
else ()
10
+
# add the executable
11
+
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
12
+
@@ -215,7 +215,7 @@
13
+
VERBATIM
14
+
)
15
+
endif()
16
+
- install (TARGETS ruri DESTINATION /usr/bin/)
17
+
+ install (TARGETS ruri)
18
+
endif()
19
+
20
+
add_custom_target(
+13
-11
pkgs/by-name/ru/ruri/package.nix
···
4
fetchFromGitHub,
5
libcap,
6
libseccomp,
0
7
}:
8
9
stdenv.mkDerivation (finalAttrs: {
10
pname = "ruri";
11
-
version = "3.8";
12
13
src = fetchFromGitHub {
14
-
owner = "Moe-hacker";
15
repo = "ruri";
16
-
rev = "v${finalAttrs.version}";
17
-
fetchSubmodules = false;
18
-
sha256 = "sha256-gf+WJPGeLbMntBk8ryTSsV9L4J3N4Goh9eWBIBj5FA4=";
19
};
20
0
0
0
0
21
buildInputs = [
22
libcap
23
libseccomp
24
];
25
26
-
installPhase = ''
27
-
runHook preInstall
28
-
install -Dm755 ruri $out/bin/ruri
29
-
runHook postInstall
30
-
'';
31
32
meta = {
33
description = "Self-contained Linux container implementation";
34
homepage = "https://wiki.crack.moe/ruri";
35
downloadPage = "https://github.com/Moe-hacker/ruri";
36
-
changelog = "https://github.com/Moe-hacker/ruri/releases/tag/v${finalAttrs.version}";
37
mainProgram = "ruri";
38
license = lib.licenses.mit;
39
platforms = lib.platforms.linux;
···
4
fetchFromGitHub,
5
libcap,
6
libseccomp,
7
+
cmake,
8
}:
9
10
stdenv.mkDerivation (finalAttrs: {
11
pname = "ruri";
12
+
version = "3.9.1";
13
14
src = fetchFromGitHub {
15
+
owner = "RuriOSS";
16
repo = "ruri";
17
+
tag = "v${finalAttrs.version}";
18
+
hash = "sha256-stM4hSLdSqmYUZ/XBD3Y1GylrrGRISlcy8LN07HREpQ=";
0
19
};
20
21
+
patches = [
22
+
./cmake-install.patch
23
+
];
24
+
25
buildInputs = [
26
libcap
27
libseccomp
28
];
29
30
+
nativeBuildInputs = [
31
+
cmake
32
+
];
0
0
33
34
meta = {
35
description = "Self-contained Linux container implementation";
36
homepage = "https://wiki.crack.moe/ruri";
37
downloadPage = "https://github.com/Moe-hacker/ruri";
38
+
changelog = "https://github.com/Moe-hacker/ruri/releases/tag/${finalAttrs.src.tag}";
39
mainProgram = "ruri";
40
license = lib.licenses.mit;
41
platforms = lib.platforms.linux;