23 lines
542 B
Nix
23 lines
542 B
Nix
{ 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
|
|
'';
|
|
}
|