Merge branch 'master' into hardened-stdenv

This commit is contained in:
Franz Pletz
2016-08-13 16:59:55 +02:00
106 changed files with 3736 additions and 2595 deletions
+72 -13
View File
@@ -1,15 +1,74 @@
[
{
"include": "../../libs.json",
"packages": [
"github.com/kelseyhightower/memkv",
"github.com/armon/consul-api",
"github.com/garyburd/redigo",
"github.com/samuel/go-zookeeper",
"github.com/BurntSushi/toml",
"github.com/Sirupsen/logrus",
"github.com/coreos/go-etcd",
"github.com/ugorji/go"
]
}
{
"goPackagePath": "github.com/Sirupsen/logrus",
"fetch": {
"type": "git",
"url": "https://github.com/Sirupsen/logrus",
"rev": "be52937128b38f1d99787bb476c789e2af1147f1",
"sha256": "1m6vvd4pg4lwglhk54lv5mf6cc8h7bi0d9zb3gar4crz531r66y4"
}
},
{
"goPackagePath": "github.com/coreos/go-etcd",
"fetch": {
"type": "git",
"url": "https://github.com/coreos/go-etcd",
"rev": "9847b93751a5fbaf227b893d172cee0104ac6427",
"sha256": "1ihq01ayqzxvn6hca5j00vl189vi5lm78f0fy2wpk5mrm3xi01l4"
}
},
{
"goPackagePath": "github.com/ugorji/go",
"fetch": {
"type": "git",
"url": "https://github.com/ugorji/go",
"rev": "03e33114d4d60a1f37150325e15f51b0fa6fc4f6",
"sha256": "01kdzgx23cgb4k867m1pvsw14hhdr9jf2frqy6i4j4221055m57v"
}
},
{
"goPackagePath": "github.com/samuel/go-zookeeper",
"fetch": {
"type": "git",
"url": "https://github.com/samuel/go-zookeeper",
"rev": "5bb5cfc093ad18a28148c578f8632cfdb4d802e4",
"sha256": "1kpx1ymh7rds0b2km291idnyqi0zck74nd8hnk72crgz7wmpqv6z"
}
},
{
"goPackagePath": "github.com/BurntSushi/toml",
"fetch": {
"type": "git",
"url": "https://github.com/BurntSushi/toml",
"rev": "056c9bc7be7190eaa7715723883caffa5f8fa3e4",
"sha256": "0gkgkw04ndr5y7hrdy0r4v2drs5srwfcw2bs1gyas066hwl84xyw"
}
},
{
"goPackagePath": "github.com/kelseyhightower/memkv",
"fetch": {
"type": "git",
"url": "https://github.com/kelseyhightower/memkv",
"rev": "7f9c7f36f45ba80c62fe22779ee78d9b4ca36580",
"sha256": "090x65kr3gqh8fc8z4rm9hc2r0v0k7rfm5vsbmhdh21f48ixw540"
}
},
{
"goPackagePath": "github.com/armon/consul-api",
"fetch": {
"type": "git",
"url": "https://github.com/armon/consul-api",
"rev": "f79efe463cdbb62f6d5a55f879a63ec554eb13e5",
"sha256": "1rkmzfhsazj9p2b6ywvs8yramzvxfxyvplzxi0ldvhcv04887gcp"
}
},
{
"goPackagePath": "github.com/garyburd/redigo",
"fetch": {
"type": "git",
"url": "https://github.com/garyburd/redigo",
"rev": "535138d7bcd717d6531c701ef5933d98b1866257",
"sha256": "1m7nc1gvv5yqnq8ii75f33485il6y6prf8gxl97dimsw94qccc5v"
}
}
]
+40
View File
@@ -0,0 +1,40 @@
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
pname = "datefudge";
version = "1.2.1";
name = "${pname}-${version}";
src = fetchgit {
sha256 = "0l83kn6c3jr3wzs880zfa64rw81cqjjk55gjxz71rjf2balp64ps";
url = "git://anonscm.debian.org/users/robert/datefudge.git";
rev = "cd141c63bebe9b579109b2232b5e83db18f222c2";
};
patchPhase = ''
substituteInPlace Makefile \
--replace "/usr" "/" \
--replace "-o root -g root" ""
substituteInPlace datefudge.sh \
--replace "@LIBDIR@" "$out/lib/"
'';
preInstallPhase = "mkdir -P $out/lib/datefudge";
installFlags = [ "DESTDIR=$(out)" ];
postInstall = "chmod +x $out/lib/datefudge/datefudge.so";
meta = with stdenv.lib; {
description = "Fake the system date";
longDescription = ''
datefudge is a small utility that pretends that the system time is
different by pre-loading a small library which modifies the time,
gettimeofday and clock_gettime system calls.
'';
homepage = http://packages.qa.debian.org/d/datefudge.html;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ leenaars ];
};
}