diff --git a/pkgs/applications/networking/sync/rclone/default.nix b/pkgs/applications/networking/sync/rclone/default.nix new file mode 100644 index 0000000000000..213d35e981d1a --- /dev/null +++ b/pkgs/applications/networking/sync/rclone/default.nix @@ -0,0 +1,26 @@ +# This file was generated by go2nix. +{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +buildGoPackage rec { + name = "rclone-${version}"; + version = "20160922-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "f2eeb4301cc04a68633eba7f51fa69a4fd9bb32c"; + + goPackagePath = "github.com/ncw/rclone"; + + src = fetchgit { + inherit rev; + url = "https://github.com/ncw/rclone"; + sha256 = "1saq98i5c5dqljp4qibbws5z305m6n5p4p61bjajw3r1kgxz1wmb"; + }; + + goDeps = ./deps.nix; + + meta = { + description = "Command line program to sync files and directories to and from major cloud storage"; + homepage = "http://rclone.org"; + license = stdenv.lib.licenses.mit; + maintainers = [ ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/applications/networking/sync/rclone/deps.nix b/pkgs/applications/networking/sync/rclone/deps.nix new file mode 100644 index 0000000000000..5087117ae6fe3 --- /dev/null +++ b/pkgs/applications/networking/sync/rclone/deps.nix @@ -0,0 +1,210 @@ +# This file was generated by go2nix. +[ + { + goPackagePath = "bazil.org/fuse"; + fetch = { + type = "git"; + url = "https://github.com/bazil/fuse"; + rev = "371fbbdaa8987b715bdd21d6adc4c9b20155f748"; + sha256 = "1x5p301py7mcxgwklfm6pqqkzssln0nfzllng49pnk60m03ilp4w"; + }; + } + { + goPackagePath = "cloud.google.com/go"; + fetch = { + type = "git"; + url = "https://code.googlesource.com/gocloud"; + rev = "23493030f077b707e6c83e77376296a7c7945f2c"; + sha256 = "08icwi2akjxl17bym1sbq2kgimm4r4vh1ls5fm0yr9x009mz7mra"; + }; + } + { + goPackagePath = "github.com/Unknwon/goconfig"; + fetch = { + type = "git"; + url = "https://github.com/Unknwon/goconfig"; + rev = "5aa4f8cd5a472c2411c778b4680f59f2223f1966"; + sha256 = "0r6na17sz762c1dyn6gb16v2zhvzg6krmz7pcjg1m0l5wxdf4n0d"; + }; + } + { + goPackagePath = "github.com/VividCortex/ewma"; + fetch = { + type = "git"; + url = "https://github.com/VividCortex/ewma"; + rev = "c595cd886c223c6c28fc9ae2727a61b5e4693d85"; + sha256 = "0f09886vm4rkhgqqh2b20r8rws4syvny3la107hh6qby027bpab2"; + }; + } + { + goPackagePath = "github.com/aws/aws-sdk-go"; + fetch = { + type = "git"; + url = "https://github.com/aws/aws-sdk-go"; + rev = "6061082a165c9c3e8fb9c681a287af83c2464fb3"; + sha256 = "0bjg89bhgfvdw8w717y0g7ck73n2ng7f6znq1xsgx2hm05nk3bxi"; + }; + } + { + goPackagePath = "github.com/cpuguy83/go-md2man"; + fetch = { + type = "git"; + url = "https://github.com/cpuguy83/go-md2man"; + rev = "a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa"; + sha256 = "1rm3zjrmfpzy0l3qp02xmd5pqzl77pdql9pbxhl0k1qw2vfzrjv6"; + }; + } + { + goPackagePath = "github.com/google/go-querystring"; + fetch = { + type = "git"; + url = "https://github.com/google/go-querystring"; + rev = "9235644dd9e52eeae6fa48efd539fdc351a0af53"; + sha256 = "0q398679fwp7vlnpd2rlzz452a7a4qvpcspak81psfl3xwimpzgq"; + }; + } + { + goPackagePath = "github.com/ncw/go-acd"; + fetch = { + type = "git"; + url = "https://github.com/ncw/go-acd"; + rev = "56da839497f9854a91f99fe752c33c7977a6f48b"; + sha256 = "1va6hpl73ps443r0s2icplcx113gkhmi2gbsgpaw2iii5lji5085"; + }; + } + { + goPackagePath = "github.com/ncw/swift"; + fetch = { + type = "git"; + url = "https://github.com/ncw/swift"; + rev = "b964f2ca856aac39885e258ad25aec08d5f64ee6"; + sha256 = "0c86ap1zb56r6g96cnbn5j3i3r96c5l8rl98h3sxlqi5agwp3km4"; + }; + } + { + goPackagePath = "github.com/ogier/pflag"; + fetch = { + type = "git"; + url = "https://github.com/ogier/pflag"; + rev = "45c278ab3607870051a2ea9040bb85fcb8557481"; + sha256 = "0620v75wppfd84d95n312wpngcb73cph4q3ivs1h0waljfnsrd5l"; + }; + } + { + goPackagePath = "github.com/pkg/errors"; + fetch = { + type = "git"; + url = "https://github.com/pkg/errors"; + rev = "a887431f7f6ef7687b556dbf718d9f351d4858a0"; + sha256 = "1mx826lsfik68k9isy5z6bc12a0aq6nvj7jly30swm5fld5ilw9l"; + }; + } + { + goPackagePath = "github.com/rfjakob/eme"; + fetch = { + type = "git"; + url = "https://github.com/rfjakob/eme"; + rev = "601d0e278ceda9aa2085a61c9265f6e690ef5255"; + sha256 = "1ryh5f2a42psrqcpjh73shk3p0mva2vcyyfav4nhxmfqall77k5z"; + }; + } + { + goPackagePath = "github.com/skratchdot/open-golang"; + fetch = { + type = "git"; + url = "https://github.com/skratchdot/open-golang"; + rev = "75fb7ed4208cf72d323d7d02fd1a5964a7a9073c"; + sha256 = "1b67imqbsdvg19vif1q1dfmapxy3v2anagacbql95fwnnw0v8jga"; + }; + } + { + goPackagePath = "github.com/spf13/cobra"; + fetch = { + type = "git"; + url = "https://github.com/spf13/cobra"; + rev = "9c28e4bbd74e5c3ed7aacbc552b2cab7cfdfe744"; + sha256 = "02bgp0yy9bi05k2in9axqi3db1c6mjffdsmki51pn9iryxz4zkh3"; + }; + } + { + goPackagePath = "github.com/spf13/pflag"; + fetch = { + type = "git"; + url = "https://github.com/spf13/pflag"; + rev = "c7e63cf4530bcd3ba943729cee0efeff2ebea63f"; + sha256 = "197mlkgb01zk86fxfl8r8maymcxsspqblg7hmngjxf7ivdid1i1l"; + }; + } + { + goPackagePath = "github.com/stacktic/dropbox"; + fetch = { + type = "git"; + url = "https://github.com/stacktic/dropbox"; + rev = "58f839b21094d5e0af7caf613599830589233d20"; + sha256 = "1psmxpnn40ri9bgjvivljnd4p977f635mh3w7m5mglxxgc9392pi"; + }; + } + { + goPackagePath = "github.com/tsenart/tb"; + fetch = { + type = "git"; + url = "https://github.com/tsenart/tb"; + rev = "19f4c3d79d2bd67d0911b2e310b999eeea4454c1"; + sha256 = "148vy4xij5qm8dq5plyczx2wbpi4gpg8ksr5r3b4m8j0z1kjws8y"; + }; + } + { + goPackagePath = "golang.org/x/crypto"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/crypto"; + rev = "8e06e8ddd9629eb88639aba897641bff8031f1d3"; + sha256 = "0lpg958hxf5zljhrlyn073apb67rwjgqnmc3k039k2p8hvh1vzy4"; + }; + } + { + goPackagePath = "golang.org/x/net"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/net"; + rev = "f09c4662a0bd6bd8943ac7b4931e185df9471da4"; + sha256 = "17bfninkcsh1w28i8cd10943x20zpf8whkgwa1qzax5hbgbvfkrd"; + }; + } + { + goPackagePath = "golang.org/x/oauth2"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/oauth2"; + rev = "3c3a985cb79f52a3190fbc056984415ca6763d01"; + sha256 = "0c7x8wkya56z03j2qfm61932npsddgqyggi75hkla9755d1inqlv"; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"; + sha256 = "04va4pqygfzr89fx873k44bmivk7nybqalybi6q96lnn45h2scbr"; + }; + } + { + goPackagePath = "golang.org/x/text"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/text"; + rev = "a7c023693a94aedd6b6df43ae7526bfe9d2b7d22"; + sha256 = "19kq5w431zrv1v4sd4ddzrafgz2dwcyrjzcdxp6yrzj2c3akpb71"; + }; + } + { + goPackagePath = "google.golang.org/api"; + fetch = { + type = "git"; + url = "https://code.googlesource.com/google-api-go-client"; + rev = "adba394bac5800ff2e620d040e9401528f5b7615"; + sha256 = "1k43fpn76cjcpw7kb95hvfkgc3ssnaxf1h6jlfbbfls7ydl01shy"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72636b200dc5f..8e36c562a1167 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14082,6 +14082,7 @@ in cmake = cmake_2_8; # problems after 3.4 -> 3.6.0 }); + rclone = callPackage ../applications/networking/sync/rclone { }; rcs = callPackage ../applications/version-management/rcs { };