mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #331751 from chewblacka/update-await
await: 1.0.1 -> 1.0.2
This commit is contained in:
commit
25f7ee38fa
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user