From f7e5bb023186829e838260a8306cdb2980719c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Wed, 16 Sep 2020 13:16:31 +0200 Subject: [PATCH] traefik: fix dashboard by using source releases The traefik dashboard depends on static files built with npm. The source releases included the prebundled static files , so switching to them fixes the issue. --- pkgs/servers/traefik/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index b18530f8c09..35ef1ef3958 100644 --- a/pkgs/servers/traefik/default.nix +++ b/pkgs/servers/traefik/default.nix @@ -1,16 +1,20 @@ -{ stdenv, buildGoModule, fetchFromGitHub, go-bindata, nixosTests }: +{ stdenv, fetchurl, buildGoModule, go-bindata, nixosTests }: buildGoModule rec { pname = "traefik"; version = "2.2.11"; - src = fetchFromGitHub { - owner = "containous"; - repo = "traefik"; - rev = "v${version}"; - sha256 = "0l93qb0kjbm5gjba0bxfyb5a0n1p54n5crhcsyzgrki4x586lan0"; + src = fetchurl { + url = "https://github.com/containous/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz"; + sha256 = "00kprbr437ml33bxm4nhxm9vwh6ywrpxvlij7p3r306bfpwa4j3r"; }; + unpackPhase = '' + mkdir source + cd source + tar xf $src + ''; + vendorSha256 = "06x2mcyp6c1jdf5wz51prhcn071d0580322lcv3x2bxk2grx08i2"; doCheck = false;