diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2020-09-16 13:16:31 +0200 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2020-09-27 10:41:44 +0200 |
commit | f7e5bb023186829e838260a8306cdb2980719c0b (patch) | |
tree | 99929f804cfaa7409ba916c6d5ff2edfd7ba6a53 /pkgs/servers/traefik | |
parent | adfe1d8d8d2c203c2718d03db60d71494d99defd (diff) |
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.
Diffstat (limited to 'pkgs/servers/traefik')
-rw-r--r-- | pkgs/servers/traefik/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index b18530f8c09e0..35ef1ef395890 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; |