Skip to content

Commit

Permalink
trurl: init at 0.2
Browse files Browse the repository at this point in the history
This is a new tool for "translating and transposing URLs, made by curl's
Daniel Sternberg.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
  • Loading branch information
christoph-heiss committed Apr 5, 2023
1 parent e876881 commit 5526f5f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2305.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- [nimdow](https://github.com/avahe-kellenberger/nimdow), a window manager written in Nim, inspired by dwm.

- [trurl](https://github.com/curl/trurl), a command line tool for URL parsing and manipulation.

- [woodpecker-agents](https://woodpecker-ci.org/), a simple CI engine with great extensibility. Available as [services.woodpecker-agents](#opt-services.woodpecker-agents.agents._name_.enable).

- [woodpecker-server](https://woodpecker-ci.org/), a simple CI engine with great extensibility. Available as [services.woodpecker-server](#opt-services.woodpecker-server.enable).
Expand Down
32 changes: 32 additions & 0 deletions pkgs/tools/networking/trurl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, stdenv, fetchFromGitHub, runCommand, curl, perl }:

stdenv.mkDerivation rec {
pname = "trurl";
version = "0.2";

src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-rUYw5LOHTfjVseODxsW4GhH67SSIpY03l1Gp3ke+xX0=";
};

separateDebugInfo = stdenv.isLinux;

enableParallelBuilding = true;

propagatedBuildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];

doCheck = true;
checkInputs = [ perl ];
checkTarget = "test";

meta = with lib; {
description = "A command line tool for URL parsing and manipulation";
homepage = "https://curl.se/trurl";
license = licenses.curl;
maintainers = with maintainers; [ christoph-heiss ];
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6551,6 +6551,8 @@ with pkgs;

curlie = callPackage ../tools/networking/curlie { };

trurl = callPackage ../tools/networking/trurl { };

cunit = callPackage ../tools/misc/cunit { };
bcunit = callPackage ../tools/misc/bcunit { };

Expand Down

0 comments on commit 5526f5f

Please sign in to comment.