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.
This commit is contained in:
parent
adfe1d8d8d
commit
f7e5bb0231
@ -1,16 +1,20 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub, go-bindata, nixosTests }:
|
{ stdenv, fetchurl, buildGoModule, go-bindata, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "traefik";
|
pname = "traefik";
|
||||||
version = "2.2.11";
|
version = "2.2.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "containous";
|
url = "https://github.com/containous/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
|
||||||
repo = "traefik";
|
sha256 = "00kprbr437ml33bxm4nhxm9vwh6ywrpxvlij7p3r306bfpwa4j3r";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0l93qb0kjbm5gjba0bxfyb5a0n1p54n5crhcsyzgrki4x586lan0";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
mkdir source
|
||||||
|
cd source
|
||||||
|
tar xf $src
|
||||||
|
'';
|
||||||
|
|
||||||
vendorSha256 = "06x2mcyp6c1jdf5wz51prhcn071d0580322lcv3x2bxk2grx08i2";
|
vendorSha256 = "06x2mcyp6c1jdf5wz51prhcn071d0580322lcv3x2bxk2grx08i2";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user