2021-10-05 20:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "cozydrive";
|
2022-03-06 14:13:45 +00:00
|
|
|
version = "3.32.0";
|
2021-10-05 20:08:02 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cozy-labs/cozy-desktop/releases/download/v${version}/Cozy-Drive-${version}-x86_64.AppImage";
|
2022-03-06 14:13:45 +00:00
|
|
|
sha256 = "0qd5abswqbzqkk1krn9la5d8wkwfydkqrnbak3xmzbdxnkg4gc9a";
|
2021-10-05 20:08:02 +00:00
|
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit name src; };
|
|
|
|
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
install -m 444 -D ${appimageContents}/cozydrive.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/cozydrive.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cozy Drive is a synchronization tool for your files and folders with Cozy Cloud.";
|
|
|
|
homepage = "https://cozy.io";
|
|
|
|
license = licenses.gpl3Only;
|
2021-10-09 13:50:27 +00:00
|
|
|
maintainers = with maintainers; [ simarra ];
|
2021-10-05 20:08:02 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|