diff --git a/overlays/default.nix b/overlays/default.nix index b1f1dcc3..1712dcbb 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -114,4 +114,6 @@ with final; { if true then throw "tracer-game: haddock runs on affection for 10 hours and more" else tracer.packages.${system}.tracer-game; + + trainbot = callPackage ./trainbot.nix { }; } diff --git a/overlays/trainbot.nix b/overlays/trainbot.nix new file mode 100644 index 00000000..5cc661c9 --- /dev/null +++ b/overlays/trainbot.nix @@ -0,0 +1,21 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, ffmpeg +}: + +buildGoModule { + pname = "trainbot"; + version = "unstable-2023-05-04"; + + src = fetchFromGitHub { + owner = "jo-m"; + repo = "trainbot"; + rev = "70cfe6aea483dc8c9936a006efe3c0b3ed271209"; + sha256 = "sha256-T6IrSfRiEQJ4mUdsvBpp+9Q6hb74eRnphxDTXH9ui0k="; + }; + + checkInputs = [ ffmpeg ]; + + vendorHash = "sha256-DphXCfPW4w0aGI1e3aKQ9pDAMJ8wioPCDqRUR5gJ+Q4="; +}