depot/third_party/nixpkgs/pkgs/tools/networking/trurl/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, curl, python3, trurl, testers }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.16";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-Og7+FVCBWohVd58GVxFN3KChcG0Kts1MokiOQXZ1OTc=";
};
outputs = [ "out" "dev" "man" ];
separateDebugInfo = stdenv.hostPlatform.isLinux;
enableParallelBuilding = true;
nativeBuildInputs = [ curl ];
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
nativeCheckInputs = [ python3 ];
checkTarget = "test";
passthru.tests.version = testers.testVersion {
package = trurl;
};
meta = with lib; {
description = "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;
mainProgram = "trurl";
};
}