mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
df87a35173
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.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;
|
|
};
|
|
}
|