summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/slog/default.nix
blob: bd10bac5eb6ea90347b5f2f3f2cc17e882e84a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ fetchFromGitHub, lib, pkgs, stdenv }:

## 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 lib; {
    description = "POSIX shell logging";
    license = licenses.mit;
  };

}