mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
fleet: update to 0.9.0
This commit is contained in:
parent
7893825613
commit
ad4ad11fbc
@ -1,30 +1,33 @@
|
||||
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
||||
{ stdenv, lib, go, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.5.0";
|
||||
name = "fleet-${version}";
|
||||
version = "0.9.0";
|
||||
|
||||
src = import ./deps.nix {
|
||||
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
|
||||
src = fetchFromGitHub {
|
||||
owner = "coreos";
|
||||
repo = "fleet";
|
||||
rev = "v${version}";
|
||||
sha256 = "0gjminfprprs1nmg9y9a0qkyl9spixrk4pc2b7bl0lxdgpq2yiid";
|
||||
};
|
||||
|
||||
buildInputs = [ go ];
|
||||
|
||||
buildPhase = ''
|
||||
export GOPATH=$src
|
||||
go build -v -o fleet github.com/coreos/fleet
|
||||
patchShebangs build
|
||||
./build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv fleet $out/bin
|
||||
mkdir -p $out
|
||||
mv bin $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A distributed init system";
|
||||
homepage = http://coreos.com/using-coreos/clustering/;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
maintainers = with maintainers; [ cstrahan offline ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -1,81 +0,0 @@
|
||||
{ stdenv, lib, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
goDeps = [
|
||||
{
|
||||
root = "code.google.com/p/gogoprotobuf";
|
||||
src = fetchgit {
|
||||
url = "https://code.google.com/p/gogoprotobuf";
|
||||
rev = "7fd1620f09261338b6b1ca1289ace83aee0ec946";
|
||||
sha256 = "0f13y29zpxkv7b7kwnszygvg04fd5m9r8vpkl1wa3gxnc6az54i9";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/coreos/etcd";
|
||||
src = fetchFromGitHub {
|
||||
owner = "coreos";
|
||||
repo = "etcd";
|
||||
rev = "1359d29fa451b059bb76b51260610d92853e7316";
|
||||
sha256 = "0iz3vmf3nfp1i5r8al207wm0jvj68i47a814w90b1jl8g4f2amp7";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/coreos/fleet";
|
||||
src = fetchFromGitHub {
|
||||
owner = "coreos";
|
||||
repo = "fleet";
|
||||
rev = "da0a02ed3b07d83b0b542dcdee56e08d2457ab9c";
|
||||
sha256 = "0b8aq4ppyv1fjvf3f2qjq80mvjvf9r104bf4048wgsrs0pccs6s8";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/coreos/raft";
|
||||
src = fetchFromGitHub {
|
||||
owner = "coreos";
|
||||
repo = "raft";
|
||||
rev = "67dca7288f1665b59860421673d46314f4348e45";
|
||||
sha256 = "1l27kjkwcxgx89d2m537plagbp1wh6qlzxirza6lliblrgxry6mw";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/stathat/go";
|
||||
src = fetchFromGitHub {
|
||||
owner = "stathat";
|
||||
repo = "go";
|
||||
rev = "01d012b9ee2ecc107cb28b6dd32d9019ed5c1d77";
|
||||
sha256 = "0mrn70wjfcs4rfkmga3hbfqmbjk33skcsc8pyqxp02bzpwdpc4bi";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/stretchr/objx";
|
||||
src = fetchFromGitHub {
|
||||
owner = "stretchr";
|
||||
repo = "objx";
|
||||
rev = "cbeaeb16a013161a98496fad62933b1d21786672";
|
||||
sha256 = "1xn7iibjik77h6h0jilfvcjkkzaqz45baf44p3rb2i03hbmkqkp1";
|
||||
};
|
||||
}
|
||||
{
|
||||
root = "github.com/stretchr/testify";
|
||||
src = fetchFromGitHub {
|
||||
owner = "stretchr";
|
||||
repo = "testify";
|
||||
rev = "3e03dde72495487a4deb74152ac205d0619fbc8d";
|
||||
sha256 = "1xd9sbi6y68cfwkxgybcz0dbfx4r6jmxq51wjj6six3wm9p7m8ls";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "go-deps";
|
||||
|
||||
buildCommand =
|
||||
lib.concatStrings
|
||||
(map (dep: ''
|
||||
mkdir -p $out/src/`dirname ${dep.root}`
|
||||
ln -s ${dep.src} $out/src/${dep.root}
|
||||
'') goDeps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user