Skip to content

Commit

Permalink
dayon: 14.0.2 -> 15.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Jan 5, 2025
1 parent 4a1f682 commit 81874bf
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions pkgs/by-name/da/dayon/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "dayon";
version = "14.0.2";
version = "15.0.0";

src = fetchFromGitHub {
owner = "RetGal";
repo = "dayon";
rev = "v${finalAttrs.version}";
hash = "sha256-nRNqubR44ydZwwuQG3q6TRm+MHTRgRbeLI9dsk83wq4=";
hash = "sha256-Tnw1Tr+iRxvHFzSICwOcf4mErNx+imD7/WxVspiR7yo=";
};

nativeBuildInputs = [
Expand All @@ -39,13 +39,13 @@ stdenv.mkDerivation (finalAttrs: {
install -Dm644 build/dayon.jar $out/share/dayon/dayon.jar
# jre is in PATH because dayon needs keytool to generate certificates
makeWrapper ${jre}/bin/java $out/bin/dayon \
makeWrapper ${lib.getExe jre} $out/bin/dayon \
--prefix PATH : "${lib.makeBinPath [ jre ]}" \
--add-flags "-jar $out/share/dayon/dayon.jar"
makeWrapper ${jre}/bin/java $out/bin/dayon_assisted \
makeWrapper ${lib.getExe jre} $out/bin/dayon_assisted \
--prefix PATH : "${lib.makeBinPath [ jre ]}" \
--add-flags "-cp $out/share/dayon/dayon.jar mpo.dayon.assisted.AssistedRunner"
makeWrapper ${jre}/bin/java $out/bin/dayon_assistant \
makeWrapper ${lib.getExe jre} $out/bin/dayon_assistant \
--prefix PATH : "${lib.makeBinPath [ jre ]}" \
--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
Expand All @@ -54,21 +54,16 @@ stdenv.mkDerivation (finalAttrs: {
'';

desktopItems = [
"resources/deb/dayon_assisted.desktop"
"resources/deb/dayon_assistant.desktop"
"debian/dayon_assisted.desktop"
"debian/dayon_assistant.desktop"
];

postFixup = ''
substituteInPlace $out/share/applications/*.desktop \
--replace "/usr/bin/dayon/dayon.png" "dayon"
'';

meta = with lib; {
meta = {
description = "Easy to use, cross-platform remote desktop assistance solution";
homepage = "https://retgal.github.io/Dayon/index.html";
license = licenses.gpl3Plus; # https://github.com/RetGal/Dayon/issues/59
license = lib.licenses.gpl3Plus; # https://github.com/RetGal/Dayon/issues/59
mainProgram = "dayon";
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
maintainers = with lib.maintainers; [ fgaz ];
platforms = lib.platforms.all;
};
})

0 comments on commit 81874bf

Please sign in to comment.