From 1b7191563ae12b1fc1d36e1335c0da6010f1645a Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 5 May 2023 00:46:21 +0200 Subject: [PATCH] overlays/trainbot: init at unstable-2023-05-04 --- overlays/default.nix | 2 ++ overlays/trainbot.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 overlays/trainbot.nix 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="; +}