nixpkgs/pkgs/tools/networking/trurl/default.nix
Christoph Heiss df87a35173
trurl: 0.3 -> 0.4
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-12 14:05:10 +02:00

34 lines
828 B
Nix

{ lib, stdenv, fetchFromGitHub, curl, perl }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.4";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-f9z0gPtHcn3iWFA6MT6ngok0nXBcd6zJ8Tjnb5Lzf6c=";
};
separateDebugInfo = stdenv.isLinux;
enableParallelBuilding = true;
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
checkInputs = [ perl ];
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;
};
}