Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, stdenv, replaceVars, autoreconfHook, pkg-config, fetchurl, python3, dropbox, gtk4, nautilus, gdk-pixbuf, gobject-introspection,}:
let version = "2024.04.17"; dropboxd = "${dropbox}/bin/dropbox";instdenv.mkDerivation { pname = "dropbox-cli"; inherit version;
outputs = [ "out" "nautilusExtension" ];
src = fetchurl { url = "https://linux.dropbox.com/packages/nautilus-dropbox-${version}.tar.bz2"; hash = "sha256-pqCYzxaqR0f0CBaseT1Z436K47cIDQswYR1sK4Zj8sE="; };
strictDeps = true;
patches = [ (replaceVars ./fix-cli-paths.patch { inherit dropboxd; # patch context DESKTOP_FILE_DIR = null; }) ];
nativeBuildInputs = [ autoreconfHook pkg-config gobject-introspection gdk-pixbuf # only for build, the install command also wants to use GTK through introspection # but we are using Nix for installation so we will not need that. (python3.withPackages ( ps: with ps; [ docutils pygobject3 ] )) ];
buildInputs = [ python3 gtk4 nautilus ];
configureFlags = [ "--with-nautilus-extension-dir=${placeholder "nautilusExtension"}/lib/nautilus/extension-4" ];
makeFlags = [ "EMBLEM_DIR=${placeholder "nautilusExtension"}/share/nautilus-dropbox/emblems" ];
meta = { homepage = "https://www.dropbox.com"; description = "Command line client for the dropbox daemon"; license = lib.licenses.gpl3Plus; mainProgram = "dropbox"; maintainers = with lib.maintainers; [ ]; # NOTE: Dropbox itself only works on linux, so this is ok. platforms = lib.platforms.linux; };}