9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
16 rev = "refs/tags/v${finalAttrs.version}";
17 hash = "sha256-OOPVLY9kg4TmKSrpHgsOmAmeDPbX5df0bX51lA6DvcY=";
20 nativeBuildInputs = [ makeWrapper ];
27 mkdir -p $out/{bin,lib}
28 cp -r $src/{src,LICENSE,README.md} $out/lib
29 makeWrapper ${lib.getExe deno} $out/bin/era \
30 --set DENO_NO_UPDATE_CHECK "1" \
31 --add-flags "run -A $out/lib/src/main.ts"
37 description = "Rainy clock in your terminal";
38 homepage = "https://github.com/kyoheiu/era";
39 changelog = "https://github.com/kyoheiu/era/releases/tag/v${finalAttrs.version}";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ natsukium ];
43 inherit (deno.meta) platforms;