mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
cadvisor: 0.33.1 -> 0.34.0
This commit is contained in:
parent
27a4afefbe
commit
1aee94dc42
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "cadvisor-${version}";
|
name = "cadvisor-${version}";
|
||||||
version = "0.33.1";
|
version = "0.34.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "cadvisor";
|
repo = "cadvisor";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15wddg0xwkz42n5y2f72yq3imhbvnp83g1jq6p81ddw9qzbz62zs";
|
sha256 = "1hshmhsclja50ja2jqxx2f5lcvbs64n6aw6dw28wbnq3z9v0q8ad";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ go ];
|
nativeBuildInputs = [ go ];
|
||||||
@ -17,12 +17,15 @@ stdenv.mkDerivation rec {
|
|||||||
export GOCACHE="$TMPDIR/go-cache"
|
export GOCACHE="$TMPDIR/go-cache"
|
||||||
mkdir -p Godeps/_workspace/src/github.com/google/
|
mkdir -p Godeps/_workspace/src/github.com/google/
|
||||||
ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
|
ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
|
||||||
GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor
|
GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor -ldflags="-s -w -X github.com/google/cadvisor/version.Version=${version}" github.com/google/cadvisor
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
runHook preInstall
|
||||||
mv cadvisor $out/bin
|
|
||||||
|
install -Dm755 -t $out/bin cadvisor
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user