Merge pull request #259753 from massix/feat/add-onedriver-master
onedriver: init at 0.13.0-2
This commit is contained in:
commit
8f103c99b8
2 changed files with 70 additions and 0 deletions
|
@ -10933,6 +10933,12 @@
|
||||||
githubId = 29855073;
|
githubId = 29855073;
|
||||||
name = "Michael Colicchia";
|
name = "Michael Colicchia";
|
||||||
};
|
};
|
||||||
|
massimogengarelli = {
|
||||||
|
email = "massimo.gengarelli@gmail.com";
|
||||||
|
github = "massix";
|
||||||
|
githubId = 585424;
|
||||||
|
name = "Massimo Gengarelli";
|
||||||
|
};
|
||||||
matejc = {
|
matejc = {
|
||||||
email = "cotman.matej@gmail.com";
|
email = "cotman.matej@gmail.com";
|
||||||
github = "matejc";
|
github = "matejc";
|
||||||
|
|
64
pkgs/by-name/on/onedriver/package.nix
Normal file
64
pkgs/by-name/on/onedriver/package.nix
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{ buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lib
|
||||||
|
, pkg-config
|
||||||
|
, webkitgtk
|
||||||
|
, glib
|
||||||
|
, fuse
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
pname = "onedriver";
|
||||||
|
version = "0.13.0-2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jstaf";
|
||||||
|
repo = "onedriver";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-Bcjgmx9a4pTRhkzR3tbOB6InjvuH71qomv4t+nRNc+w=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
buildGoModule {
|
||||||
|
inherit pname version src;
|
||||||
|
vendorHash = "sha256-OOiiKtKb+BiFkoSBUQQfqm4dMfDW3Is+30Kwcdg8LNA=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||||
|
buildInputs = [ webkitgtk glib fuse ];
|
||||||
|
|
||||||
|
ldflags = [ "-X github.com/jstaf/onedriver/cmd/common.commit=v${version}" ];
|
||||||
|
|
||||||
|
subPackages = [
|
||||||
|
"cmd/onedriver"
|
||||||
|
"cmd/onedriver-launcher"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
echo "Running postInstall"
|
||||||
|
install -Dm644 ./resources/onedriver.svg $out/share/icons/onedriver/onedriver.svg
|
||||||
|
install -Dm644 ./resources/onedriver.png $out/share/icons/onedriver/onedriver.png
|
||||||
|
install -Dm644 ./resources/onedriver-128.png $out/share/icons/onedriver/onedriver-128.png
|
||||||
|
|
||||||
|
install -Dm644 ./resources/onedriver.desktop $out/share/applications/onedriver.desktop
|
||||||
|
|
||||||
|
mkdir -p $out/share/man/man1
|
||||||
|
installManPage ./resources/onedriver.1
|
||||||
|
|
||||||
|
substituteInPlace $out/share/applications/onedriver.desktop \
|
||||||
|
--replace "/usr/bin/onedriver-launcher" "$out/bin/onedriver-launcher" \
|
||||||
|
--replace "/usr/share/icons" "$out/share/icons"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A network filesystem for Linux";
|
||||||
|
longDescription = ''
|
||||||
|
onedriver is a network filesystem that gives your computer direct access to your files on Microsoft OneDrive.
|
||||||
|
This is not a sync client. Instead of syncing files, onedriver performs an on-demand download of files when
|
||||||
|
your computer attempts to use them. onedriver allows you to use files on OneDrive as if they were files on
|
||||||
|
your local computer.
|
||||||
|
'';
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = [ maintainers.massimogengarelli ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue