diff options
author | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-01-24 12:58:08 +0000 |
---|---|---|
committer | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-01-25 14:16:48 +0000 |
commit | e94d6f865ddc7adf75c1a7781946114415d77f3a (patch) | |
tree | 5fab51121ea3519d01c7d7408dca2b8c7efe43c9 /pkgs/by-name/aw | |
parent | cf792a51c8e0ea815c5734fef8734648d1d2d1e1 (diff) |
await: init at 0.999
Diffstat (limited to 'pkgs/by-name/aw')
-rw-r--r-- | pkgs/by-name/aw/await/package.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/by-name/aw/await/package.nix b/pkgs/by-name/aw/await/package.nix new file mode 100644 index 0000000000000..40376c646e676 --- /dev/null +++ b/pkgs/by-name/aw/await/package.nix @@ -0,0 +1,38 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "await"; + version = "0.999"; + + src = fetchFromGitHub { + owner = "slavaGanzin"; + repo = "await"; + rev = "v${version}"; + hash = "sha256-z178TKA0x6UnpBQaA8dig2FLeJKGxPndfvwtmylAD90="; + }; + + buildPhase = '' + runHook preBuild + $CC await.c -o await -l pthread + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm755 await -t $out/bin + install -Dm444 LICENSE -t $out/share/licenses/await + install -Dm444 README.md -t $out/share/doc/await + + runHook postInstall + ''; + + meta = with lib; { + description = "Small binary that runs a list of commands in parallel and awaits termination"; + homepage = "https://await-cli.app"; + license = licenses.mit; + maintainers = with maintainers; [ chewblacka ]; + platforms = platforms.all; + mainProgram = "await"; + }; +} |