depot/third_party/nixpkgs/pkgs/by-name/in/insync-nautilus/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
1.2 KiB
Nix

{
stdenv,
fetchurl,
lib,
dpkg,
nautilus-python,
insync-emblem-icons,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "insync-nautilus";
version = lib.getVersion insync-emblem-icons;
pyproject = true;
# Download latest from: https://www.insynchq.com/downloads/linux#nautilus
src = fetchurl rec {
urls = [
"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 ];
buildInputs = [
nautilus-python
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
'';
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";
};
})