summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/slog
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-11-10 22:34:50 +0100
committerlassulus <lassulus@lassul.us>2017-11-10 22:34:50 +0100
commit4c083777ddf71f7cbd12a1b094aa50e18ab89d2d (patch)
tree7595238893e6dddb68b32f14ddda7c823a576945 /krebs/5pkgs/simple/slog
parentbc1dbd6d0ab121682c67dae85711ccab027401ae (diff)
parent886bd92d8b7620454ab2e701e1c1c1d20cf73b6d (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/5pkgs/simple/slog')
-rw-r--r--krebs/5pkgs/simple/slog/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/slog/default.nix b/krebs/5pkgs/simple/slog/default.nix
new file mode 100644
index 000000000..c74a2ad80
--- /dev/null
+++ b/krebs/5pkgs/simple/slog/default.nix
@@ -0,0 +1,26 @@
+{ pkgs, stdenv, fetchFromGitHub }:
+
+## use with:
+# . $(command -v slog.sh)
+stdenv.mkDerivation rec {
+ name = "slog-${version}";
+ version = "2017-10-27";
+
+ src = fetchFromGitHub {
+ owner = "makefu";
+ repo = "slog";
+ rev = "50367c3";
+ sha256 = "16wlh8xz430101lrxmgl2wangbbhvyj4pg8k5aibnh76sgj6x77r";
+ };
+
+ installPhase = ''
+ mkdir -p $out/bin
+ install -m755 slog.sh $out/bin
+ '';
+
+ meta = with stdenv.lib; {
+ description = "POSIX shell logging";
+ license = licenses.mit;
+ };
+
+}