stockholm/krebs/5pkgs/simple/slog/default.nix
tv cb11e10d95 slog: stdenv.lib -> lib
Deprecated since nixpkgs 21.05
2021-06-02 02:43:38 +02:00

27 lines
506 B
Nix

{ 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;
};
}