Merge pull request #226699 from christoph-heiss/pkgs/trurl

trurl: 0.4 -> 0.6, add manpage, add passthru.tests.version
This commit is contained in:
Guillaume Girol 2023-04-26 17:30:27 +00:00 committed by GitHub
commit db29276f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,33 @@
{ lib, stdenv, fetchFromGitHub, curl, perl }:
{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages, trurl, testers }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.4";
version = "0.6";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-f9z0gPtHcn3iWFA6MT6ngok0nXBcd6zJ8Tjnb5Lzf6c=";
hash = "sha256-/Gf7T67LPzVPhjAqTvbLiJOqfKeWvwH/WHelJZTH4ZI=";
};
outputs = [ "out" "dev" "man" ];
separateDebugInfo = stdenv.isLinux;
enableParallelBuilding = true;
nativeBuildInputs = [ curl ];
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
checkInputs = [ perl ];
nativeCheckInputs = [ python3 python3Packages.packaging ];
checkTarget = "test";
passthru.tests.version = testers.testVersion {
package = trurl;
};
meta = with lib; {
description = "A command line tool for URL parsing and manipulation";
homepage = "https://curl.se/trurl";