mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
887295fd2d
@the-kenny did a good job in the past and is set as maintainer in many package, however since 2017-2018 he stopped contributing. To create less confusion in pull requests when people try to request his feedback, I removed him as maintainer from all packages.
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ stdenv
|
|
, substituteAll
|
|
, pkgconfig
|
|
, fetchurl
|
|
, python3
|
|
, dropbox
|
|
, gtk3
|
|
, gnome3
|
|
, gdk-pixbuf
|
|
, gobject-introspection
|
|
}:
|
|
|
|
let
|
|
version = "2020.03.04";
|
|
dropboxd = "${dropbox}/bin/dropbox";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "dropbox-cli";
|
|
inherit version;
|
|
|
|
outputs = [ "out" "nautilusExtension" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://linux.dropboxstatic.com/packages/nautilus-dropbox-${version}.tar.bz2";
|
|
sha256 = "1jjc835n2j61d23kvygdb4n4jsrw33r9mbwxrm4fqin6x01l2w7k";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-cli-paths.patch;
|
|
inherit dropboxd;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
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
|
|
gtk3
|
|
gnome3.nautilus
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-nautilus-extension-dir=${placeholder "nautilusExtension"}/lib/nautilus/extensions-3.0"
|
|
];
|
|
|
|
makeFlags = [
|
|
"EMBLEM_DIR=${placeholder "nautilusExtension"}/share/nautilus-dropbox/emblems"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://www.dropbox.com";
|
|
description = "Command line client for the dropbox daemon";
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
# NOTE: Dropbox itself only works on linux, so this is ok.
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|