nixpkgs/pkgs/tools/networking/trurl/default.nix
Christoph Heiss 439f2eea90
trurl: 0.6 -> 0.7
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-05-29 20:50:07 +02:00

40 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages, trurl, testers }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.7";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-2F/01FUsOa8ZqU1YHrxTD4KcJul2OEoW/RJCXoLfywg=";
};
outputs = [ "out" "dev" "man" ];
separateDebugInfo = stdenv.isLinux;
enableParallelBuilding = true;
nativeBuildInputs = [ curl ];
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
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";
changelog = "https://github.com/curl/trurl/releases/tag/${pname}-${version}";
license = licenses.curl;
maintainers = with maintainers; [ christoph-heiss ];
platforms = platforms.all;
};
}