nixpkgs/pkgs/tools/networking/trurl/default.nix
Christoph Heiss 018fe5d71b
trurl: 0.4 -> 0.6
- upstream switched from using perl to python3 for running tests.
- the build process now relies on `curl-config` being present
- man pages now land in a separate output

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-26 16:30:32 +02:00

36 lines
948 B
Nix

{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.6";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-/Gf7T67LPzVPhjAqTvbLiJOqfKeWvwH/WHelJZTH4ZI=";
};
outputs = [ "out" "dev" "man" ];
separateDebugInfo = stdenv.isLinux;
enableParallelBuilding = true;
nativeBuildInputs = [ curl ];
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
nativeCheckInputs = [ python3 python3Packages.packaging ];
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;
};
}