summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-08-13 16:59:55 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2016-08-13 16:59:55 +0200
commitbd4490e2772ff80149dc9236873cfcbf1cb3f846 (patch)
treee08b232c3e346efaff4a549b855fae1feb919b47 /pkgs/tools/system
parentfa3a35b241def2f837d72b5de736c513d6856cf9 (diff)
parent79149ac12d5009169900f027de2633a843e614f0 (diff)
downloadnixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.gz
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.bz2
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.lz
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.xz
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.zst
nixlib-bd4490e2772ff80149dc9236873cfcbf1cb3f846.zip
Merge branch 'master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/confd/deps.json85
-rw-r--r--pkgs/tools/system/datefudge/default.nix40
2 files changed, 112 insertions, 13 deletions
diff --git a/pkgs/tools/system/confd/deps.json b/pkgs/tools/system/confd/deps.json
index a3d9753927f1..407870efdaa3 100644
--- a/pkgs/tools/system/confd/deps.json
+++ b/pkgs/tools/system/confd/deps.json
@@ -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"
+        }
+    }
 ]
diff --git a/pkgs/tools/system/datefudge/default.nix b/pkgs/tools/system/datefudge/default.nix
new file mode 100644
index 000000000000..d2d14ddd110b
--- /dev/null
+++ b/pkgs/tools/system/datefudge/default.nix
@@ -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 ];
+  };
+}