{ pkgs ? import { } }: pkgs.stdenv.mkDerivation { name = "tuxstrap-cron-executable"; src = pkgs.fetchFromGitHub { owner = "ocbwoy3"; repo = "tuxstrap"; rev = "v1.2.0"; sha256 = "sha256-YZ+GD9hs8PAf45kFklrR3j1hUWovKWllr2iQuh3gRms="; # Replace with the actual sha256 }; buildInputs = [ pkgs.bun ]; buildPhase = '' bun build ./daily-challenge-reminder-crontab.ts --compile --minify --outfile reminder-crontab-exec ''; installPhase = '' mkdir -p $out/bin cp daily-challenge-reminder-crontab.ts $out/bin/crontab-script.ts mv reminder-crontab-exec tuxstrap-crontab cp tuxstrap-crontab $out/bin/ ''; }