nixpkgs/pkgs/tools/networking/trurl/default.nix
Christoph Heiss 5d87212871
trurl: drop now-obsolete postPatch
This was only an issue with the 0.9 release, which has been corrected
with 0.10 since then.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-20 19:33:21 +01:00

41 lines
1.0 KiB
Nix

{ lib, stdenv, fetchFromGitHub, curl, python3, trurl, testers }:
stdenv.mkDerivation rec {
pname = "trurl";
version = "0.10";
src = fetchFromGitHub {
owner = "curl";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-/eivtsxNzW6IlX08Zfnj06C1kdaaRs4yvqLlbBuo8ec=";
};
outputs = [ "out" "dev" "man" ];
separateDebugInfo = stdenv.isLinux;
enableParallelBuilding = true;
nativeBuildInputs = [ curl ];
buildInputs = [ curl ];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
nativeCheckInputs = [ python3 ];
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;
mainProgram = "trurl";
};
}