summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/misc/iceportal/default.nix
blob: 7f5c078010f1871817a4d6f74366b81419a5a2f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
  };
}