1 { lib, stdenv, fetchzip }:
6 stdenv.mkDerivation rec {
8 version = "0.15.93226";
10 url = "https://repo.jotta.us/archives/linux/${arch}/jotta-cli-${version}_linux_${arch}.tar.gz";
11 sha256 = "sha256-RMN/OQHnHCx/xbi/J9LiK6m0TkPvd34GtmR6lr66pKs=";
16 install -D usr/bin/jotta-cli usr/bin/jottad -t $out/bin/
17 mkdir -p $out/share/bash-completion/completions
21 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/bin/jotta-cli
22 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/bin/jottad
23 $out/bin/jotta-cli completion bash > $out/share/bash-completion/completions/jotta-cli.bash
27 description = "Jottacloud CLI";
28 homepage = "https://www.jottacloud.com/";
29 downloadPage = "https://repo.jotta.us/archives/linux/";
30 maintainers = with maintainers; [ evenbrenden ];
31 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
32 license = licenses.unfree;
33 platforms = [ "x86_64-linux" ];