at 22.05-pre 34 lines 1.1 kB view raw
1{ lib, stdenv, fetchzip }: 2 3let 4 arch = "amd64"; 5in 6stdenv.mkDerivation rec { 7 pname = "jotta-cli"; 8 version = "0.11.44593"; 9 src = fetchzip { 10 url = "https://repo.jotta.us/archives/linux/${arch}/jotta-cli-${version}_linux_${arch}.tar.gz"; 11 sha256 = "1f06zmcpvm0f3phwc43ai6v4ykhkrd4f3br2j89nx9bfmj6ss2ic"; 12 stripRoot = false; 13 }; 14 15 installPhase = '' 16 install -D usr/bin/jotta-cli usr/bin/jottad -t $out/bin/ 17 mkdir -p $out/share/bash-completion/completions 18 ''; 19 20 postFixup = '' 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 24 ''; 25 26 meta = with lib; { 27 description = "Jottacloud CLI"; 28 homepage = "https://www.jottacloud.com/"; 29 downloadPage = "https://repo.jotta.us/archives/linux/"; 30 maintainers = with maintainers; [ evenbrenden ]; 31 license = licenses.unfree; 32 platforms = [ "x86_64-linux" ]; 33 }; 34}