Skip to content

Instantly share code, notes, and snippets.

@risicle
Created March 11, 2024 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save risicle/16cc1e2438f5586d6cfc2c1b7bef4833 to your computer and use it in GitHub Desktop.
Save risicle/16cc1e2438f5586d6cfc2c1b7bef4833 to your computer and use it in GitHub Desktop.
{ 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