dt: init at 1.2.3

Co-authored-by: figsoda <figsoda@pm.me>
This commit is contained in:
booniepepper 2023-08-07 02:17:32 -07:00 committed by Anderson Torres
parent 564e47d761
commit 1c62806f89
2 changed files with 49 additions and 0 deletions

View File

@ -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";
};
})

View File

@ -595,6 +595,12 @@ with pkgs;
dsq = callPackage ../tools/misc/dsq { };
dt = callPackage ../tools/text/dt {
zigHook = zigHook.override {
zig = buildPackages.zig_0_11;
};
};
dtv-scan-tables = callPackage ../data/misc/dtv-scan-tables { };
dufs = callPackage ../servers/http/dufs {