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