Created
March 11, 2024 12:24
-
-
Save risicle/16cc1e2438f5586d6cfc2c1b7bef4833 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
{ lib | |
, stdenvNoCC | |
, fetchFromGitHub | |
, awscli | |
, coreutils | |
, makeWrapper | |
, gnugrep | |
, gnused | |
, jq | |
, which | |
}: | |
stdenvNoCC.mkDerivation rec { | |
pname = "ecs-deploy"; | |
version = "3.10.16"; | |
src = fetchFromGitHub { | |
owner = "silinternational"; | |
repo = "ecs-deploy"; | |
rev = version; | |
hash = "sha256-pghj9p4YDjwo+mfgYubu9KQhlG5MxKJ44NvHDvAs6lo="; | |
}; | |
buildInputs = [ makeWrapper ]; | |
installPhase = '' | |
runHook preInstall | |
mkdir -p $out/bin | |
install -m755 ecs-deploy $out/bin/ | |
wrapProgram $out/bin/ecs-deploy \ | |
--set PATH '${lib.makeBinPath [ | |
awscli | |
jq | |
coreutils | |
gnugrep | |
gnused | |
which | |
]}' | |
runHook postInstall | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment