2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
2024-04-21 15:54:59 +00:00
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
dpkg,
|
2024-07-27 06:49:29 +00:00
|
|
|
nautilus-python,
|
2024-06-24 18:47:55 +00:00
|
|
|
insync-emblem-icons,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "insync-nautilus";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = lib.getVersion insync-emblem-icons;
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
# Download latest from: https://www.insynchq.com/downloads/linux#nautilus
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
src = fetchurl rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
urls = [
|
|
|
|
"https://cdn.insynchq.com/builds/linux/insync-nautilus_${finalAttrs.version}_all.deb"
|
2024-06-24 18:47:55 +00:00
|
|
|
"https://web.archive.org/web/20240409080611/${builtins.elemAt urls 0}"
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
|
|
|
hash = "sha256-aB1/ZzcQH3T1lviMZO8jXbtdbe4TW20f0TAcv4HDOGI=";
|
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
nativeBuildInputs = [ dpkg ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2024-07-27 06:49:29 +00:00
|
|
|
nautilus-python
|
2024-06-24 18:47:55 +00:00
|
|
|
insync-emblem-icons
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R usr/share $out/
|
2024-06-24 18:47:55 +00:00
|
|
|
cp -rs "${insync-emblem-icons}"/share/icons $out/share/icons
|
2024-04-21 15:54:59 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ hellwolf ];
|
|
|
|
homepage = "https://www.insynchq.com";
|
|
|
|
description = "This package contains the Python extension and icons for integrating Insync with Nautilus";
|
|
|
|
};
|
|
|
|
})
|