Unverified Commit be54546c authored by tomberek's avatar tomberek Committed by GitHub
Browse files

ruri: 3.8 -> 3.9.1 (#434384)

parents 3a2ad3b3 76a2fc6e
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -201,7 +201,7 @@
     set(CMAKE_POSITION_INDEPENDENT_CODE ON)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
     add_library(ruri SHARED ${SOURCES})
-    install (TARGETS ruri DESTINATION /usr/lib/)
+    install (TARGETS ruri)
 else ()
 # add the executable
     set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
@@ -215,7 +215,7 @@
             VERBATIM
         )
     endif()
-    install (TARGETS ruri DESTINATION /usr/bin/)
+    install (TARGETS ruri)
 endif()
 
 add_custom_target(
+13 −11
Original line number Diff line number Diff line
@@ -4,36 +4,38 @@
  fetchFromGitHub,
  libcap,
  libseccomp,
  cmake,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ruri";
  version = "3.8";
  version = "3.9.1";

  src = fetchFromGitHub {
    owner = "Moe-hacker";
    owner = "RuriOSS";
    repo = "ruri";
    rev = "v${finalAttrs.version}";
    fetchSubmodules = false;
    sha256 = "sha256-gf+WJPGeLbMntBk8ryTSsV9L4J3N4Goh9eWBIBj5FA4=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-stM4hSLdSqmYUZ/XBD3Y1GylrrGRISlcy8LN07HREpQ=";
  };

  patches = [
    ./cmake-install.patch
  ];

  buildInputs = [
    libcap
    libseccomp
  ];

  installPhase = ''
    runHook preInstall
    install -Dm755 ruri $out/bin/ruri
    runHook postInstall
  '';
  nativeBuildInputs = [
    cmake
  ];

  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}";
    changelog = "https://github.com/Moe-hacker/ruri/releases/tag/${finalAttrs.src.tag}";
    mainProgram = "ruri";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;