summary refs log tree commit diff
path: root/pkgs/servers/traefik/default.nix
blob: 0f10dcf744a7771cadfddcf21c2e43d8f44ebcbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "traefik-${version}";
  version = "v1.3.8";

  src = fetchurl {
    url = "https://github.com/containous/traefik/releases/download/${version}/traefik";
    sha256 = "09m8svkqdrvayw871azzcb05dnbhbgb3c2380dw0v4wpcd0rqr9h";
  };

  buildCommand = ''
    mkdir -p $out/bin
    cp $src $out/bin/traefik
    chmod +x $out/bin/traefik
  '';

  meta = with stdenv.lib; {
    homepage = https://traefik.io;
    description = "Træfik, a modern reverse proxy";
    license = licenses.mit;
    maintainers = with maintainers; [ hamhut1066 ];
  };
}