2023-09-12 08:44:05 -06:00
|
|
|
{ fetchurl
|
|
|
|
, appimageTools
|
|
|
|
, desktop-file-utils
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2022-08-25 12:21:35 -06:00
|
|
|
name = "cinny-desktop";
|
|
|
|
version = "2.0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "cinny_${version}_amd64.AppImage";
|
2023-07-11 09:12:50 -06:00
|
|
|
url = "https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/cinny_${version}_amd64.AppImage";
|
2022-08-25 12:21:35 -06:00
|
|
|
sha256 = "sha256-9ZQyVcTsHja67DhuIyniTK/xr0C6qN7fiCmjt8enUd8=";
|
|
|
|
};
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
appimageContents = appimageTools.extract { inherit name src; };
|
2023-07-11 09:12:50 -06:00
|
|
|
in
|
2023-09-12 08:44:05 -06:00
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
inherit name src;
|
2023-07-11 09:12:50 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
extraInstallCommands = ''
|
|
|
|
cp -r ${appimageContents}/* $out
|
|
|
|
cd $out
|
|
|
|
chmod -R +w $out
|
2023-07-11 09:12:50 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
|
|
|
|
--set-key Exec --set-value ${name} "cinny.desktop"
|
2023-07-11 09:12:50 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
mv usr/bin/cinny $out/${name}
|
|
|
|
#mv usr/share share
|
2023-07-11 09:12:50 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
rm -rf usr/lib/* AppRun* *.desktop
|
|
|
|
'';
|
2023-07-11 09:12:50 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
extraPkgs = pkgs:
|
|
|
|
with pkgs; [
|
|
|
|
atk
|
|
|
|
avahi
|
|
|
|
brotli
|
|
|
|
cairo
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
glew-egl
|
|
|
|
gobject-introspection
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
harfbuzz
|
|
|
|
icu
|
|
|
|
libdrm
|
|
|
|
libGLU
|
|
|
|
libgpg-error
|
|
|
|
librsvg
|
|
|
|
libthai
|
|
|
|
pango
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
}
|