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