diff options
author | makefu <github@syntax-fehler.de> | 2017-10-27 10:32:42 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-10-27 10:32:42 +0200 |
commit | 346ba71f9c7e170583e8f3aa10575d1b260b2b3d (patch) | |
tree | 0c799b007979a6e9e2507e076d0c70cdae56edf2 /makefu/5pkgs/slog/default.nix | |
parent | b4580347a657de5be97c59e8f8edc6cebde04c26 (diff) |
ma pkgs.slog: init
Diffstat (limited to 'makefu/5pkgs/slog/default.nix')
-rw-r--r-- | makefu/5pkgs/slog/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefu/5pkgs/slog/default.nix b/makefu/5pkgs/slog/default.nix new file mode 100644 index 000000000..a4dc33d28 --- /dev/null +++ b/makefu/5pkgs/slog/default.nix @@ -0,0 +1,20 @@ +{ pkgs, stdenv, fetchFromGitHub }: + +## Posix shell logging, 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 + ''; +} |