2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2019-09-29 16:21:51 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
arch = "amd64";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jotta-cli";
|
2023-10-10 11:23:51 +00:00
|
|
|
version = "0.15.93226";
|
2020-02-02 21:31:44 +00:00
|
|
|
src = fetchzip {
|
2019-09-29 16:21:51 +00:00
|
|
|
url = "https://repo.jotta.us/archives/linux/${arch}/jotta-cli-${version}_linux_${arch}.tar.gz";
|
2023-10-10 11:23:51 +00:00
|
|
|
sha256 = "sha256-RMN/OQHnHCx/xbi/J9LiK6m0TkPvd34GtmR6lr66pKs=";
|
2019-09-29 16:21:51 +00: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
|
2021-06-07 07:46:16 +00:00
|
|
|
$out/bin/jotta-cli completion bash > $out/share/bash-completion/completions/jotta-cli.bash
|
2019-09-29 16:21:51 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-29 16:21:51 +00:00
|
|
|
description = "Jottacloud CLI";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.jottacloud.com/";
|
|
|
|
downloadPage = "https://repo.jotta.us/archives/linux/";
|
2019-09-29 16:21:51 +00:00
|
|
|
maintainers = with maintainers; [ evenbrenden ];
|
2022-06-04 22:19:25 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2019-09-29 16:21:51 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|