uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/applications/misc/jotta-cli/default.nix
Normal file
34
pkgs/applications/misc/jotta-cli/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
let
|
||||
arch = "amd64";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jotta-cli";
|
||||
version = "0.14.58899";
|
||||
src = fetchzip {
|
||||
url = "https://repo.jotta.us/archives/linux/${arch}/jotta-cli-${version}_linux_${arch}.tar.gz";
|
||||
sha256 = "sha256-V4aShSMifXQl+qnCspm+P4q99Fn3N+us/sLzzTVV7mg=";
|
||||
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 bash > $out/share/bash-completion/completions/jotta-cli.bash
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Jottacloud CLI";
|
||||
homepage = "https://www.jottacloud.com/";
|
||||
downloadPage = "https://repo.jotta.us/archives/linux/";
|
||||
maintainers = with maintainers; [ evenbrenden ];
|
||||
license = licenses.unfree;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue