This commit is contained in:
2024-12-31 23:13:31 +02:00
parent 5b616eb1de
commit 94f2c28237
2 changed files with 2 additions and 13 deletions

View File

@@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> { } }:
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 --outfile=tuxstrap-crontab
'';
installPhase = ''
mkdir -p $out/bin
# cp daily-challenge-reminder-crontab.ts $out/bin/crontab-script.ts
cp tuxstrap-crontab $out/bin/
'';
}