diff options
-rw-r--r-- | nixos/modules/services/networking/copy-com.nix | 54 | ||||
-rw-r--r-- | pkgs/applications/networking/copy-com/default.nix | 62 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 0 insertions, 118 deletions
diff --git a/nixos/modules/services/networking/copy-com.nix b/nixos/modules/services/networking/copy-com.nix deleted file mode 100644 index ee0d043d471b..000000000000 --- a/nixos/modules/services/networking/copy-com.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - - cfg = config.services.copy-com; - -in - -{ - options = { - - services.copy-com = { - - enable = mkOption { - default = false; - description = " - Enable the Copy.com client. - NOTE: before enabling the client for the first time, it must be - configured by first running CopyConsole (command line) or CopyAgent - (graphical) as the appropriate user. - "; - }; - - user = mkOption { - description = "The user for which the Copy.com client should be run."; - }; - - debug = mkOption { - default = false; - description = "Output more (debugging) messages to the console."; - }; - }; - }; - - config = mkIf cfg.enable { - environment.systemPackages = [ pkgs.postfix ]; - - systemd.services."copy-com-${cfg.user}" = { - description = "Copy.com client"; - wants = [ "network-online.target" ]; - after = [ "network-online.target" "local-fs.target" ]; - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - ExecStart = "${pkgs.copy-com}/bin/CopyConsole ${if cfg.debug then "-consoleOutput -debugToConsole=dirwatch,path-watch,csm_path,csm -debug -console" else ""}"; - User = "${cfg.user}"; - }; - - }; - }; - -} - diff --git a/pkgs/applications/networking/copy-com/default.nix b/pkgs/applications/networking/copy-com/default.nix deleted file mode 100644 index 21dc23739775..000000000000 --- a/pkgs/applications/networking/copy-com/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ stdenv, fetchurl, patchelf, fontconfig, freetype -, gcc, glib, libICE, libSM, libX11, libXext, libXrender }: - -let - arch = if stdenv.system == "x86_64-linux" then "x86_64" - else if stdenv.system == "i686-linux" then "x86" - else if stdenv.system == "armv6-linux" then "armv6h" - else throw "Copy.com client for: ${stdenv.system} not supported!"; - - interpreter = if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2" - else if stdenv.system == "i686-linux" then "ld-linux.so.2" - else if stdenv.system == "armv6-linux" then "ld-linux.so.2" - else throw "Copy.com client for: ${stdenv.system} not supported!"; - - appdir = "opt/copy"; - - libPackages = [ fontconfig freetype gcc.cc glib libICE libSM libX11 libXext - libXrender ]; - libPaths = stdenv.lib.concatStringsSep ":" - (map (path: "${path}/lib") libPackages); - -in stdenv.mkDerivation { - - name = "copy-com-3.2.01.0481"; - - src = fetchurl { - # Note: copy.com doesn't version this file. Annoying. - url = "https://copy.com/install/linux/Copy.tgz"; - sha256 = "0bpphm71mqpaiygs57kwa23nli0qm64fvgl1qh7fkxyqqabh4g7k"; - }; - - nativeBuildInputs = [ patchelf ]; - - phases = "unpackPhase installPhase"; - - installPhase = '' - mkdir -p $out/opt - cp -r ${arch} "$out/${appdir}" - - mkdir -p "$out/bin" - for binary in Copy{Agent,Console,Cmd}; do - binary="$out/${appdir}/$binary" - ln -sv "$binary" "$out/bin" - patchelf --set-interpreter ${stdenv.glibc.out}/lib/${interpreter} "$binary" - done - - RPATH=${libPaths}:$out/${appdir} - echo "Updating rpaths to $RPATH in:" - find "$out/${appdir}" -type f -a -perm -0100 \ - -print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \; - ''; - - meta = with stdenv.lib; { - homepage = http://copy.com; - description = "Copy.com graphical & command-line clients"; - # Closed Source unfortunately. - license = licenses.unfree; - maintainers = with maintainers; [ nathan-gs nckx ]; - # NOTE: Copy.com itself only works on linux, so this is ok. - platforms = platforms.linux; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5b391263b1fa..0ebaa28cdfe6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13899,8 +13899,6 @@ in bittorrentSync14 = callPackage ../applications/networking/bittorrentsync/1.4.x.nix { }; bittorrentSync20 = callPackage ../applications/networking/bittorrentsync/2.0.x.nix { }; - copy-com = callPackage ../applications/networking/copy-com { }; - dropbox = qt55.callPackage ../applications/networking/dropbox { }; dropbox-cli = callPackage ../applications/networking/dropbox-cli { }; |