Created
May 15, 2020 09:47
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
awscli = with pkgs; stdenv.mkDerivation { | |
name = "awscli"; | |
src = fetchzip { | |
url = https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip; | |
sha256 = "1pqvqhxbikqnji7nazvaqnk2czlmr3kvs1zyl13w96ym4if3np1v"; | |
}; | |
propagatedBuildInputs = with pkgs; [ | |
]; | |
installPhase = '' | |
mkdir -p $out/bin | |
./install -i $out -b $out/bin | |
''; | |
}; | |
in pkgs.buildFHSUserEnv { | |
name = "awscli"; | |
targetPkgs = pkgs: with pkgs; [ | |
awscli | |
groff | |
]; | |
profile = '' | |
export C_INCLUDE_PATH=/usr/include:$C_INCLUDE_PATH | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${awscli}/v2/dist | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment