2021-10-06 13:57:05 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "cozydrive";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.39.0";
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cozy-labs/cozy-desktop/releases/download/v${version}/Cozy-Drive-${version}-x86_64.AppImage";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-mTRg8KQm7BJil81TClyzCrXSHTbn+G9pRYMIaeXojzc=";
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2024-05-15 15:35:15 +00:00
|
|
|
inherit pname version src;
|
2021-10-06 13:57:05 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cozy Drive is a synchronization tool for your files and folders with Cozy Cloud";
|
2021-10-06 13:57:05 +00:00
|
|
|
homepage = "https://cozy.io";
|
|
|
|
license = licenses.gpl3Only;
|
2021-10-09 14:59:57 +00:00
|
|
|
maintainers = with maintainers; [ simarra ];
|
2021-10-06 13:57:05 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cozydrive";
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
|
|
|
}
|