mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
40 lines
997 B
Nix
40 lines
997 B
Nix
{ lib, stdenv, fetchFromGitHub, curl, python3, trurl, testers }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "trurl";
|
|
version = "0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "curl";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-KHJMxzHqHW8WbeD6jxyuzZhuHc5x4B7fP/rYAK687ac=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|