Skip to content

Commit

Permalink
dayon: init at 11.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Aug 1, 2023
1 parent 490601e commit 3b55cf9
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
67 changes: 67 additions & 0 deletions pkgs/applications/networking/remote/dayon/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29469,6 +29469,8 @@ with pkgs;
extraIntegrations = extras;
};

dayon = callPackage ../applications/networking/remote/dayon { };

ddgr = callPackage ../applications/misc/ddgr { };

deadbeef = callPackage ../applications/audio/deadbeef { };
Expand Down

0 comments on commit 3b55cf9

Please sign in to comment.