ba59355e81
- Add the 'gitUpdater' helper function to update git based packages, using the 'genericUpdater' function. - Rework argument passing to the `list-git-tags' and 'list-archive-two-level-versions' scripts. - Replace 'genericUpdater' plus 'list-git-tags' by 'gitUpdater'
46 lines
871 B
Nix
46 lines
871 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, gtk3
|
|
, thunar
|
|
, cmake
|
|
, ninja
|
|
, xfce
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "thunar-dropbox";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jeinzi";
|
|
repo = "thunar-dropbox";
|
|
rev = version;
|
|
sha256 = "sha256-q7tw/1JgEn9SyjH1KBZl0tintWJjd3ctUs4JUuCWULs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
thunar
|
|
gtk3
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
inherit pname version;
|
|
attrPath = "xfce.thunar-dropbox-plugin";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Jeinzi/thunar-dropbox";
|
|
description = "A plugin that adds context-menu items for Dropbox to Thunar";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ] ++ teams.xfce.members;
|
|
};
|
|
}
|