Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
running-grass committed Dec 29, 2023
1 parent 1553b80 commit fc38acb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/anytype/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

let
pname = "anytype";
version = "0.36.0";
version = "0.37.3";
name = "Anytype-${version}";
nameExecutable = pname;
src = fetchurl {
url = "https://github.com/anyproto/anytype-ts/releases/download/v${version}/${name}.AppImage";
name = "Anytype-${version}.AppImage";
sha256 = "sha256-Efoqy/izULDgd2Dc3ktVZNj9/U0vCtENm0NLr5VKQpQ=";
sha256 = "sha256-W3p67L07XOEtXYluI+TvggXBdaNRadypZc9MO6QTh4M=";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in
Expand All @@ -26,8 +26,10 @@ appimageTools.wrapType2 {
install -m 444 -D ${appimageContents}/anytype.desktop -t $out/share/applications
substituteInPlace $out/share/applications/anytype.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/anytype.png \
$out/share/icons/hicolor/512x512/apps/anytype.png
for size in 16 32 64 128 256 512 1024; do
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/anytype.png \
$out/share/icons/hicolor/''${size}x''${size}/apps/anytype.png
done
'';

meta = with lib; {
Expand Down

0 comments on commit fc38acb

Please sign in to comment.