15 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-neJi5lIx45GsuwZPzzwwEm1bfrL2DFSysVkxa4fCBww";
46 ] ++ lib.optionals withSystemd [ systemd ];
49 (lib.enableFeature true "notifications")
50 (lib.withFeatureAs withSystemd "systemdsystemunitdir" "${placeholder "out"}/lib/systemd/system")
51 (lib.withFeatureAs withSystemd "systemduserunitdir" "${placeholder "out"}/lib/systemd/user")
54 # we could also pass --enable-completions to configure but we would then have to
55 # figure out the paths manually and pass those along.
57 installShellCompletion --bash --name onedrive contrib/completions/complete.bash
58 installShellCompletion --fish --name onedrive contrib/completions/complete.fish
59 installShellCompletion --zsh --name _onedrive contrib/completions/complete.zsh
63 tests.version = testers.testVersion {
64 package = finalAttrs.finalPackage;
65 version = "v${finalAttrs.version}";
70 homepage = "https://github.com/abraunegg/onedrive";
71 description = "Complete tool to interact with OneDrive on Linux";
72 license = lib.licenses.gpl3Only;
73 mainProgram = "onedrive";
74 maintainers = with lib.maintainers; [
79 platforms = lib.platforms.linux;