This commit is contained in:
2024-12-31 13:45:35 +02:00
parent 128dee5de7
commit 76a96ff17b
9 changed files with 464 additions and 54 deletions

View File

@@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.stdenv.mkDerivation {
name = "tuxstrap-cron-executable";
src = pkgs.fetchFromGitHub {
owner = "ocbwoy3";
repo = "tuxstrap";
rev = "v1.2.0";
sha256 = "0000000000000000000000000000000000000000000000000000"; # 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 reminder-crontab-exec $out/bin/tuxstrap-cron
'';
}