Unverified Commit 350c5970 authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

rcu: 2024.001q -> 2025.001r (#380414)

parents 5f635873 a89985fd
Loading
Loading
Loading
Loading
+27 −7
Original line number Diff line number Diff line
@@ -6,17 +6,21 @@
  rcu,
  testers,
  copyDesktopItems,
  coreutils,
  desktopToDarwinBundle,
  gnutar,
  libsForQt5,
  makeDesktopItem,
  nettools,
  protobuf,
  python3Packages,
  system-config-printer,
  wget,
}:

python3Packages.buildPythonApplication rec {
  pname = "rcu";
  version = "2024.001q";
  version = "2025.001r";

  format = "other";

@@ -24,8 +28,8 @@ python3Packages.buildPythonApplication rec {
    let
      src-tarball = requireFile {
        name = "rcu-d${version}-source.tar.gz";
        hash = "sha256-Ywk28gJBMSSQL6jEcHE8h253KOsXIGwVOag6PBWs8kg=";
        url = "http://www.davisr.me/projects/rcu/";
        hash = "sha256-3pTfe0ytcvLnO65S0Uqrv/IBoidpEIQXqkcIG354hUU=";
        url = "https://www.davisr.me/projects/rcu/";
      };
    in
    runCommand "${src-tarball.name}-unpacked" { } ''
@@ -48,6 +52,10 @@ python3Packages.buildPythonApplication rec {
    # This must match the protobuf version imported at runtime, regenerate it
    rm src/model/update_metadata_pb2.py
    protoc --proto_path src/model src/model/update_metadata.proto --python_out=src/model

    # We don't make it available at this location, wrapping adds it to PATH instead
    substituteInPlace src/model/document.py \
      --replace-fail '/sbin/ifconfig' 'ifconfig'
  '';

  nativeBuildInputs =
@@ -134,9 +142,21 @@ python3Packages.buildPythonApplication rec {
    ''
      makeWrapperArgs+=(
        "''${qtWrapperArgs[@]}"
        --prefix PATH : ${
          lib.makeBinPath [
            coreutils
            gnutar
            wget
          ]
        }
    ''
    + lib.optionalString stdenv.hostPlatform.isLinux ''
      --prefix PATH : ${lib.makeBinPath [ system-config-printer ]}
      --prefix PATH : ${
        lib.makeBinPath [
          nettools
          system-config-printer
        ]
      }
    ''
    + ''
      )
@@ -164,12 +184,12 @@ python3Packages.buildPythonApplication rec {
    };
  };

  meta = with lib; {
  meta = {
    mainProgram = "rcu";
    description = "All-in-one offline/local management software for reMarkable e-paper tablets";
    homepage = "http://www.davisr.me/projects/rcu/";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ OPNA2608 ];
    license = lib.licenses.agpl3Plus;
    maintainers = with lib.maintainers; [ OPNA2608 ];
    hydraPlatforms = [ ]; # requireFile used as src
  };
}