insync-nautilus: use insync-emblem-icons

- applied nixfmt
This commit is contained in:
hellwolf 2024-04-21 00:10:55 +03:00
parent f840a51a49
commit dccb24697c
No known key found for this signature in database
GPG Key ID: 1080B4863AD0F5D1

View File

@ -1,39 +1,39 @@
{ stdenv,
{
stdenv,
fetchurl,
lib,
dpkg,
gnome,
insync
insync-emblem-icons,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "insync-nautilus";
version = lib.getVersion insync;
version = lib.getVersion insync-emblem-icons;
pyproject = true;
# Download latest from: https://www.insynchq.com/downloads/linux#nautilus
src = fetchurl {
src = fetchurl rec {
urls = [
"https://cdn.insynchq.com/builds/linux/insync-nautilus_${finalAttrs.version}_all.deb"
"https://web.archive.org/web/20240409080611/https://cdn.insynchq.com/builds/linux/insync-nautilus_${finalAttrs.version}_all.deb"
"https://web.archive.org/web/20240409080611/${builtins.elemAt urls 0}"
];
hash = "sha256-aB1/ZzcQH3T1lviMZO8jXbtdbe4TW20f0TAcv4HDOGI=";
};
nativeBuildInputs = [
dpkg
];
nativeBuildInputs = [ dpkg ];
buildInputs = [
gnome.nautilus-python
insync
insync-emblem-icons
];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R usr/share $out/
cp -rs "${insync-emblem-icons}"/share/icons $out/share/icons
runHook postInstall
'';