summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/misc/iceportal/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/iceportal/default.nix')
-rw-r--r--pkgs/tools/misc/iceportal/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/iceportal/default.nix b/pkgs/tools/misc/iceportal/default.nix
new file mode 100644
index 000000000000..7f5c078010f1
--- /dev/null
+++ b/pkgs/tools/misc/iceportal/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+ pname = "iceportal";
+ version = "2021-11-15";
+
+ src = fetchFromGitHub {
+ owner = "craftamap";
+ repo = "${pname}-api";
+ rev = "f73278c28cb5de53e6ab5ec0a99c0e606582cc3d";
+ sha256 = "0lg5iaj9pb3am7i17zfl33pv9bkwbfxaz9wc6s9m1z6mxg4s0a1y";
+ };
+
+ vendorSha256 = "1in0gf4adhlwxphqm56dyv4dn81m7v9in26nd26zjf5ggfq8s3sb";
+
+ meta = with lib; {
+ description = "Client to interact with the REST API of iceportal.de";
+ longDescription = ''
+ iceportal-api is a Golang client implementation to interact with the REST
+ API of iceportal.de when connected to the WiFi-Network offered in German
+ ICE Trains.
+ '';
+ homepage = "https://github.com/craftamap/iceportal-api";
+ maintainers = [ maintainers.matthiasbeyer ];
+ license = licenses.mit;
+ };
+}
+