mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
453c8f4157
This is a new tool for "translating and transposing URLs, made by curl's Daniel Sternberg. Signed-off-by: Christoph Heiss <christoph@c8h4.io>
34 lines
828 B
Nix
34 lines
828 B
Nix
{ lib, stdenv, fetchFromGitHub, curl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "trurl";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "curl";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256-z7Na7lXDzSmBTuSBaizyG892D3IfbN43ytPjOEQ9CAA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|