diff options
author | tv <tv@krebsco.de> | 2017-11-28 19:06:54 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-11-28 19:06:54 +0100 |
commit | 05bc20b893ff6d441d7e8e10802134d2192e724a (patch) | |
tree | 1c34434d71eb2e3e3ced9ade09ee4b5879cc63cd /krebs/5pkgs/simple/slog/default.nix | |
parent | 5163d8eba27976ccccf7703b52eb1b8f4c0295af (diff) | |
parent | 10a96c644898d9498e9f75fa543ebb395ffbca20 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/5pkgs/simple/slog/default.nix')
-rw-r--r-- | krebs/5pkgs/simple/slog/default.nix | 26 |
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; + }; + +} |