about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-06-20 16:17:29 +0000
committerRobin Gloster <mail@glob.in>2016-09-19 00:08:19 +0200
commit5650c92b019fa8ecc1dd37ecfd77cdd72f406da7 (patch)
treeaa16c2faf6113786a10ba139c5aa91faf0d6c3b7 /pkgs/tools/system
parent6e60359c74bea0ad4e4260612cb65a048bbea607 (diff)
downloadnixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar.gz
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar.bz2
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar.lz
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar.xz
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.tar.zst
nixlib-5650c92b019fa8ecc1dd37ecfd77cdd72f406da7.zip
systemd-journal2gelf: init at 20160414
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/systemd-journal2gelf/default.nix24
-rw-r--r--pkgs/tools/system/systemd-journal2gelf/deps.json11
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/system/systemd-journal2gelf/default.nix b/pkgs/tools/system/systemd-journal2gelf/default.nix
new file mode 100644
index 000000000000..43925411af95
--- /dev/null
+++ b/pkgs/tools/system/systemd-journal2gelf/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "SystemdJournal2Gelf-${version}";
+  version = "20160414";
+
+  goPackagePath = "github.com/parse-nl/SystemdJournal2Gelf";
+
+  src = fetchFromGitHub {
+    rev = "aba2f24e59f190ab8830bf40f92f890e62a9ec9f";
+    owner = "parse-nl";
+    repo = "SystemdJournal2Gelf";
+    sha256 = "012fmnb44681dgz21n1dlb6vh923bpk5lkqir1q40kfz6pacq64n";
+  };
+
+  goDeps = ./deps.json;
+
+  meta = with stdenv.lib; {
+    description = "Export entries from systemd's journal and send them to a graylog server using gelf";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ fadenb fpletz globin ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/tools/system/systemd-journal2gelf/deps.json b/pkgs/tools/system/systemd-journal2gelf/deps.json
new file mode 100644
index 000000000000..ce661d1d9860
--- /dev/null
+++ b/pkgs/tools/system/systemd-journal2gelf/deps.json
@@ -0,0 +1,11 @@
+[
+  {
+    "goPackagePath": "github.com/DECK36/go-gelf",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/DECK36/go-gelf",
+      "rev": "4bc6123df0946a1c23fd54e0c1d0ed68b44fd99f",
+      "sha256": "071zdwcl8ld05gv88yym1p7xq72igd6jj05n5d7v01hn6rvj48ay"
+    }
+  }
+]
\ No newline at end of file