a
This commit is contained in:
23
hosts/default/apps/tuxstrap-crontab.nix
Normal file
23
hosts/default/apps/tuxstrap-crontab.nix
Normal 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/
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user