mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
14 lines
345 B
Nix
14 lines
345 B
Nix
|
# Tally counter, also used as stopwatch
|
||
|
# tly <operation> [list-name]
|
||
|
|
||
|
{ lib, writeShellApplication, coreutils, gnugrep, bc }: (writeShellApplication {
|
||
|
name = "tly";
|
||
|
runtimeInputs = [ coreutils gnugrep bc ];
|
||
|
text = builtins.readFile ./tly.sh;
|
||
|
}) // {
|
||
|
meta = with lib; {
|
||
|
licenses = licenses.mit;
|
||
|
platforms = platforms.all;
|
||
|
};
|
||
|
}
|