2017-10-27 08:32:42 +00:00
|
|
|
{ pkgs, stdenv, fetchFromGitHub }:
|
|
|
|
|
2017-10-27 09:07:19 +00:00
|
|
|
## use with:
|
2017-10-27 08:32:42 +00:00
|
|
|
# . $(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
|
|
|
|
'';
|
2017-10-27 09:07:19 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "POSIX shell logging";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
2017-10-27 08:32:42 +00:00
|
|
|
}
|