diff options
author | booniepepper <justin@so.dang.cool> | 2023-08-07 02:17:32 -0700 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-08 20:01:35 +0000 |
commit | 1c62806f8992fd548b4e2331051c8eed85bc769d (patch) | |
tree | ab5e27cf59b979d40e1276b6d7ea834f5a3d90a7 /pkgs/tools/text/dt | |
parent | 564e47d76149653d073b9cfa642ab33dd04ab8b2 (diff) |
dt: init at 1.2.3
Co-authored-by: figsoda <figsoda@pm.me>
Diffstat (limited to 'pkgs/tools/text/dt')
-rw-r--r-- | pkgs/tools/text/dt/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/text/dt/default.nix b/pkgs/tools/text/dt/default.nix new file mode 100644 index 0000000000000..b0b269d0c4304 --- /dev/null +++ b/pkgs/tools/text/dt/default.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchFromGitHub +, testers +, zigHook +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "dt"; + version = "1.2.3"; + + src = fetchFromGitHub { + owner = "so-dang-cool"; + repo = "dt"; + rev = "v${finalAttrs.version}"; + hash = "sha256-C6sG8iqXs64x2AWCxKGFPyoXC1Fn4p2eSLWwJAQ8CSc="; + }; + + nativeBuildInputs = [ zigHook ]; + + passthru.tests.version = testers.testVersion { package = finalAttrs.dt; }; + + meta = { + homepage = "https://dt.plumbing"; + description = "Duct tape for your unix pipes."; + longDescription = '' + dt is a utility and programming language. The utility is intended for + ergonomic in-the-shell execution. The language is straightforward (in + the most literal sense) with a minimal syntax that allows for + high-level, higher-order programming. + + It's meant to supplement (not replace!) other tools like awk, sed, + xargs, and shell built-ins. Something like the Perl one-liners popular + yesteryear, but hopefully easier to read and reason through. + + In short, dt is intended to be generally useful, with zero pretense of + elegance. + ''; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ booniepepper ]; + mainProgram = "dt"; + }; +}) |