lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, testers
5, zig_0_11
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "dt";
10 version = "1.3.1";
11
12 src = fetchFromGitHub {
13 owner = "so-dang-cool";
14 repo = "dt";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-qHfvHf4T0wWnzqp5FfLg7n7te24xc2aMEdTK3Iia8Q0=";
17 };
18
19 nativeBuildInputs = [ zig_0_11.hook ];
20
21 passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
22
23 meta = {
24 homepage = "https://dt.plumbing";
25 description = "Duct tape for your unix pipes";
26 longDescription = ''
27 dt is a utility and programming language. The utility is intended for
28 ergonomic in-the-shell execution. The language is straightforward (in
29 the most literal sense) with a minimal syntax that allows for
30 high-level, higher-order programming.
31
32 It's meant to supplement (not replace!) other tools like awk, sed,
33 xargs, and shell built-ins. Something like the Perl one-liners popular
34 yesteryear, but hopefully easier to read and reason through.
35
36 In short, dt is intended to be generally useful, with zero pretense of
37 elegance.
38 '';
39 changelog = "https://github.com/so-dang-cool/dt/releases/tag/v${finalAttrs.version}";
40 license = lib.licenses.bsd3;
41 maintainers = with lib.maintainers; [ booniepepper ];
42 platforms = lib.platforms.unix;
43 mainProgram = "dt";
44 };
45})