ruri: 3.8 -> 3.9.1 (#434384)

authored by tomberek and committed by GitHub be54546c 3a2ad3b3

+33 -11
+20
pkgs/by-name/ru/ruri/cmake-install.patch
··· 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 4 fetchFromGitHub, 5 5 libcap, 6 6 libseccomp, 7 + cmake, 7 8 }: 8 9 9 10 stdenv.mkDerivation (finalAttrs: { 10 11 pname = "ruri"; 11 - version = "3.8"; 12 + version = "3.9.1"; 12 13 13 14 src = fetchFromGitHub { 14 - owner = "Moe-hacker"; 15 + owner = "RuriOSS"; 15 16 repo = "ruri"; 16 - rev = "v${finalAttrs.version}"; 17 - fetchSubmodules = false; 18 - sha256 = "sha256-gf+WJPGeLbMntBk8ryTSsV9L4J3N4Goh9eWBIBj5FA4="; 17 + tag = "v${finalAttrs.version}"; 18 + hash = "sha256-stM4hSLdSqmYUZ/XBD3Y1GylrrGRISlcy8LN07HREpQ="; 19 19 }; 20 20 21 + patches = [ 22 + ./cmake-install.patch 23 + ]; 24 + 21 25 buildInputs = [ 22 26 libcap 23 27 libseccomp 24 28 ]; 25 29 26 - installPhase = '' 27 - runHook preInstall 28 - install -Dm755 ruri $out/bin/ruri 29 - runHook postInstall 30 - ''; 30 + nativeBuildInputs = [ 31 + cmake 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 - changelog = "https://github.com/Moe-hacker/ruri/releases/tag/v${finalAttrs.version}"; 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;