Created
May 15, 2020 09:47
-
-
Save mausch/2be55d0f346b9fd39c82e7df2ec9b0f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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