Skip to content

Commit

Permalink
Merge pull request #224526 from christoph-heiss/pkgs/trurl
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 6, 2023
2 parents ed04529 + 453c8f4 commit 0cca0c5
Show file tree
Hide file tree
Showing 3 changed files with 37 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 @@ -89,6 +89,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
33 changes: 33 additions & 0 deletions pkgs/tools/networking/trurl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, curl, perl }:

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

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

separateDebugInfo = stdenv.isLinux;

enableParallelBuilding = true;

buildInputs = [ 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";
changelog = "https://github.com/curl/trurl/releases/tag/${pname}-${version}";
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 @@ -6559,6 +6559,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 0cca0c5

Please sign in to comment.