traefik: 1.3.8 -> 1.4.4

This commit is contained in:
adisbladis 2017-11-25 11:55:11 +08:00
parent fd680f162c
commit dfa4fbb98b
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -1,24 +1,19 @@
{ stdenv, buildGoPackage, fetchurl, bash, go-bindata}:
{ stdenv, buildGoPackage, fetchFromGitHub, bash, go-bindata}:
buildGoPackage rec {
name = "traefik-${version}";
version = "1.3.8";
version = "1.4.4";
goPackagePath = "github.com/containous/traefik";
src = fetchurl {
url = "https://github.com/containous/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
sha256 = "6fce36dd30bb5ae5f91e69f2950f22fe7a74b920e80c6b441a0721122f6a6174";
src = fetchFromGitHub {
owner = "containous";
repo = "traefik";
rev = "v${version}";
sha256 = "114861v8kg77zwnf742n25h7c4fly3i52inqx1kcpqs074rqm1wn";
};
buildInputs = [ go-bindata bash ];
unpackPhase = ''
runHook preUnpack
mkdir traefik
tar -C traefik -xvzf $src
export sourceRoot="traefik"
runHook postUnpack
'';
buildPhase = ''
runHook preBuild