vacuum-go: 0.16.1 -> 0.16.2 (#380231)
[NixPkgs.git] / pkgs / by-name / tr / trurl / package.nix
blob97b9afe8228d2dff9b66d1634a0911dd7d2699ba
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   curl,
6   python3,
7   trurl,
8   testers,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "trurl";
13   version = "0.16";
15   src = fetchFromGitHub {
16     owner = "curl";
17     repo = pname;
18     rev = "${pname}-${version}";
19     hash = "sha256-Og7+FVCBWohVd58GVxFN3KChcG0Kts1MokiOQXZ1OTc=";
20   };
22   outputs = [
23     "out"
24     "dev"
25     "man"
26   ];
27   separateDebugInfo = stdenv.hostPlatform.isLinux;
29   enableParallelBuilding = true;
31   nativeBuildInputs = [ curl ];
32   buildInputs = [ curl ];
33   makeFlags = [ "PREFIX=$(out)" ];
35   doCheck = true;
36   nativeCheckInputs = [ python3 ];
37   checkTarget = "test";
39   passthru.tests.version = testers.testVersion {
40     package = trurl;
41   };
43   meta = with lib; {
44     description = "Command line tool for URL parsing and manipulation";
45     homepage = "https://curl.se/trurl";
46     changelog = "https://github.com/curl/trurl/releases/tag/${pname}-${version}";
47     license = licenses.curl;
48     maintainers = with maintainers; [ christoph-heiss ];
49     platforms = platforms.all;
50     mainProgram = "trurl";
51   };