Merge pull request #331751 from chewblacka/update-await

await: 1.0.1 -> 1.0.2
This commit is contained in:
Nick Cao 2024-08-02 21:13:35 -04:00 committed by GitHub
commit 25f7ee38fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,19 +2,22 @@
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:
stdenv.mkDerivation rec {
pname = "await";
version = "1.0.1";
version = "1.0.2";
src = fetchFromGitHub {
owner = "slavaGanzin";
repo = "await";
rev = "v${version}";
hash = "sha256-5lKuqxrUAHfeV0hikrDbxkKAdPtODfal5byc3L7aZmw=";
hash = "sha256-qvSRuRLZnUptXYknyRn4GgmYtj9BnI8flN6EhadbKMw=";
};
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
runHook preBuild
$CC await.c -o await -l pthread
@ -27,6 +30,7 @@ stdenv.mkDerivation rec {
install -Dm755 await -t $out/bin
install -Dm444 LICENSE -t $out/share/licenses/await
install -Dm444 README.md -t $out/share/doc/await
installShellCompletion --cmd await autocomplete.{bash,fish,zsh}
runHook postInstall
'';