diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2023-08-01 13:23:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 13:23:14 +0200 |
commit | 2283bf968f3b6a2f100d81fb43db6d91f6aea706 (patch) | |
tree | f0b165a9391cfa66bdd2e668a98bfef71c9dbbea /pkgs/applications/networking/remote | |
parent | ab6fef15e09ce7d3592d0e59e89dac341f96b514 (diff) | |
parent | 3b55cf992cb06bfb81203b7a9008326ab54c8973 (diff) |
Merge pull request #226155 from fgaz/dayon/init
dayon: init at 11.0.7
Diffstat (limited to 'pkgs/applications/networking/remote')
-rw-r--r-- | pkgs/applications/networking/remote/dayon/default.nix | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/applications/networking/remote/dayon/default.nix b/pkgs/applications/networking/remote/dayon/default.nix new file mode 100644 index 0000000000000..d96ab8713640c --- /dev/null +++ b/pkgs/applications/networking/remote/dayon/default.nix @@ -0,0 +1,67 @@ +{ lib +, stdenv +, fetchFromGitHub +, ant +, jdk +, jre +, makeWrapper +, copyDesktopItems +}: + +stdenv.mkDerivation rec { + pname = "dayon"; + version = "11.0.7"; + + src = fetchFromGitHub { + owner = "RetGal"; + repo = "dayon"; + rev = "v${version}"; + hash = "sha256-3TbJVM5po4aUAOsY7JJs/b5tUzH3WGnca/H83IeMQ2s="; + }; + + # https://github.com/RetGal/Dayon/pull/66 + postPatch = '' + substituteInPlace resources/deb/dayon_assisted.desktop resources/deb/dayon_assistant.desktop \ + --replace "Exec=/usr/bin/" "Exec=" + ''; + + nativeBuildInputs = [ + ant + jdk + makeWrapper + copyDesktopItems + ]; + + buildPhase = '' + runHook preBuild + ant + runHook postBuild + ''; + + desktopItems = [ + "resources/deb/dayon_assisted.desktop" + "resources/deb/dayon_assistant.desktop" + ]; + + installPhase = '' + runHook preInstall + install -Dm644 build/dayon.jar $out/share/dayon/dayon.jar + mkdir -p $out/bin + makeWrapper ${jre}/bin/java $out/bin/dayon \ + --add-flags "-jar $out/share/dayon/dayon.jar" + makeWrapper ${jre}/bin/java $out/bin/dayon_assisted \ + --add-flags "-cp $out/share/dayon/dayon.jar mpo.dayon.assisted.AssistedRunner" + makeWrapper ${jre}/bin/java $out/bin/dayon_assistant \ + --add-flags "-cp $out/share/dayon/dayon.jar mpo.dayon.assistant.AssistantRunner" + install -Dm644 resources/dayon.png $out/share/icons/hicolor/128x128/apps/dayon.png + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://retgal.github.io/Dayon/index.html"; + description = "An easy to use, cross-platform remote desktop assistance solution"; + license = licenses.gpl3Plus; # https://github.com/RetGal/Dayon/issues/59 + platforms = platforms.all; + maintainers = with maintainers; [ fgaz ]; + }; +} |