Merge pull request #6880 from offlinehacker/pkgs/skydns/add

Add skydns
This commit is contained in:
Jaka Hudoklin 2015-04-19 10:43:05 +02:00
commit ca0d1aa9a3
4 changed files with 92 additions and 6 deletions

View File

@ -0,0 +1,30 @@
{ lib, goPackages, fetchFromGitHub, etcd }:
with goPackages;
buildGoPackage rec {
name = "skydns-${version}";
version = "2.1.0a";
goPackagePath = "github.com/skynetservices/skydns";
src = fetchFromGitHub {
owner = "skynetservices";
repo = "skydns";
rev = "f5141ee69309fb4c542d5a0b50fc7616370c5c06";
sha256 = "1bnc9r22kwvmn1bgz7zaidkjqm7pmw99bn5n87r76vcrd7n2a9pd";
};
buildInputs = with goPackages; [ go-etcd rcrowley.go-metrics influxdb-go go-systemd go-log dns stathat osext etcd ];
dontInstallSrc = true;
subPackages = [ "." ];
meta = with lib; {
description = "DNS service discovery for etcd";
homepage = https://github.com/skynetservices/skydns;
license = licenses.mit;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}

View File

@ -15,8 +15,6 @@ buildGoPackage rec {
subPackages = [ "./" ]; subPackages = [ "./" ];
dontInstallSrc = true;
meta = with lib; { meta = with lib; {
description = "A highly-available key value store for shared configuration and service discovery"; description = "A highly-available key value store for shared configuration and service discovery";
homepage = http://coreos.com/using-coreos/etcd/; homepage = http://coreos.com/using-coreos/etcd/;

View File

@ -2697,6 +2697,8 @@ let
simplescreenrecorder = callPackage ../applications/video/simplescreenrecorder { }; simplescreenrecorder = callPackage ../applications/video/simplescreenrecorder { };
skydns = callPackage ../servers/dns/skydns { };
sleuthkit = callPackage ../tools/system/sleuthkit {}; sleuthkit = callPackage ../tools/system/sleuthkit {};
slimrat = callPackage ../tools/networking/slimrat { slimrat = callPackage ../tools/networking/slimrat {

View File

@ -192,15 +192,31 @@ let self = _self // overrides; _self = with self; {
}; };
}; };
dbus = buildGoPackage rec {
rev = "88765d85c0fdadcd98a54e30694fa4e4f5b51133";
name = "dbus-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/godbus/dbus";
preBuild = ''
cd "go/src/$goPackagePath"
rm -r _examples
'';
src = fetchFromGitHub {
inherit rev;
owner = "godbus";
repo = "dbus";
sha256 = "0k80wzdx8091y3012nd4giwgc08n1pj6lcr9i44dsapcjnb80jkn";
};
};
dns = buildGoPackage rec { dns = buildGoPackage rec {
rev = "0bd3fb7026404936cf18204ea527d27f067923cf"; rev = "fd694e564b3ceaf34a8bbe9ef18f65c64df8ed03";
name = "dns-${stdenv.lib.strings.substring 0 7 rev}"; name = "dns-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/miekg/dns"; goPackagePath = "github.com/miekg/dns";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; inherit rev;
owner = "miekg"; owner = "miekg";
repo = "dns"; repo = "dns";
sha256 = "1hv2ikpd9gr9idf7zh8nyqgdbnnffs057wsdpd7m44mllbmzhdxn"; sha256 = "1g15l00jypjac0fd2j39lifw1j3md49vk6fq35mv8kc8ighhvxaq";
}; };
}; };
@ -437,6 +453,19 @@ let self = _self // overrides; _self = with self; {
}; };
}; };
go-etcd = buildGoPackage rec {
rev = "4734e7aca379f0d7fcdf04fbb2101696a4b45ce8";
name = "go-etcd-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/coreos/go-etcd";
src = fetchFromGitHub {
inherit rev;
owner = "coreos";
repo = "go-etcd";
sha256 = "0zqr7mzd5kq0rnxj3zx5x5wwbmjkg365farwv72hzrsvq6g8zczr";
};
buildInputs = [ pkgs.etcd ];
};
go-fuse = buildGoPackage rec { go-fuse = buildGoPackage rec {
rev = "5d16aa11eef4643de2d91e88a64dcb6138705d58"; rev = "5d16aa11eef4643de2d91e88a64dcb6138705d58";
name = "go-fuse-${stdenv.lib.strings.substring 0 7 rev}"; name = "go-fuse-${stdenv.lib.strings.substring 0 7 rev}";
@ -486,6 +515,19 @@ let self = _self // overrides; _self = with self; {
}; };
}; };
go-log = buildGoPackage rec {
rev = "70d039bee4b0e389e5be560491d8291708506f59";
name = "go-log-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/coreos/go-log";
src = fetchFromGitHub {
inherit rev;
owner = "coreos";
repo = "go-log";
sha256 = "1s95xmmhcgw4ascf4zr8c4ij2n4s3mr881nxcpmc61g0gb722b13";
};
buildInputs = [ go-systemd osext ];
};
rcrowley.go-metrics = buildGoPackage rec { rcrowley.go-metrics = buildGoPackage rec {
rev = "f770e6f5e91a8770cecee02d5d3f7c00b023b4df"; rev = "f770e6f5e91a8770cecee02d5d3f7c00b023b4df";
name = "rcrowley.go-metrics-${stdenv.lib.strings.substring 0 7 rev}"; name = "rcrowley.go-metrics-${stdenv.lib.strings.substring 0 7 rev}";
@ -597,7 +639,21 @@ let self = _self // overrides; _self = with self; {
sha256 = "1r9s1gsa4azcs05gx1179ixk7qvrkrik3v92wr4s8gwm00m0gf81"; sha256 = "1r9s1gsa4azcs05gx1179ixk7qvrkrik3v92wr4s8gwm00m0gf81";
}; };
}; };
go-systemd = buildGoPackage rec {
rev = "2d21675230a81a503f4363f4aa3490af06d52bb8";
name = "go-systemd-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/coreos/go-systemd";
src = fetchFromGitHub {
inherit rev;
owner = "coreos";
repo = "go-systemd";
sha256 = "07g5c8khlcjnr86gniw3zr7l8jwrb9fhrj18zm5n6ccj24nidwam";
};
subPackages = [ "activation" "daemon" "dbus" "journal" "login1" ];
buildInputs = [ dbus ];
};
go-update = buildGoPackage rec { go-update = buildGoPackage rec {
rev = "c1385108bc3a016f1c88b75ea7d2e2a356a1571d"; rev = "c1385108bc3a016f1c88b75ea7d2e2a356a1571d";
name = "go-update-${stdenv.lib.strings.substring 0 7 rev}"; name = "go-update-${stdenv.lib.strings.substring 0 7 rev}";
@ -781,7 +837,7 @@ let self = _self // overrides; _self = with self; {
mgo = buildGoPackage rec { mgo = buildGoPackage rec {
rev = "2"; rev = "2";
name = "mgo-${rev}"; name = "mgo-${rev}";
goPackagePath = "launchpad.net/mgo"; goPackagePath = "launchpad.net/mgo";
src = fetchbzr { src = fetchbzr {
inherit rev; inherit rev;