2019-09-29 17:21:51 +01:00
|
|
|
{ stdenv, fetchzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
arch = "amd64";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jotta-cli";
|
2020-10-29 08:26:00 +00:00
|
|
|
version = "0.7.33634";
|
2020-02-02 21:31:44 +00:00
|
|
|
src = fetchzip {
|
2019-09-29 17:21:51 +01:00
|
|
|
url = "https://repo.jotta.us/archives/linux/${arch}/jotta-cli-${version}_linux_${arch}.tar.gz";
|
2020-10-29 08:26:00 +00:00
|
|
|
sha256 = "0apbdk4fvmn52w9qyh6hvpk3k0sa810jvvndpsbysnlmi7gv5w62";
|
2019-09-29 17:21:51 +01:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D usr/bin/jotta-cli usr/bin/jottad -t $out/bin/
|
|
|
|
mkdir -p $out/share/bash-completion/completions
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/bin/jotta-cli
|
|
|
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/bin/jottad
|
|
|
|
$out/bin/jotta-cli completion > $out/share/bash-completion/completions/jotta-cli.bash
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Jottacloud CLI";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.jottacloud.com/";
|
|
|
|
downloadPage = "https://repo.jotta.us/archives/linux/";
|
2019-09-29 17:21:51 +01:00
|
|
|
maintainers = with maintainers; [ evenbrenden ];
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|