Unverified Commit 018fe5d7 authored by Christoph Heiss's avatar Christoph Heiss
Browse files

trurl: 0.4 -> 0.6



- upstream switched from using perl to python3 for running tests.
- the build process now relies on `curl-config` being present
- man pages now land in a separate output

Signed-off-by: default avatarChristoph Heiss <christoph@c8h4.io>
parent 6eceb07c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, curl, perl }:
{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages }:

stdenv.mkDerivation rec {
  pname = "trurl";
  version = "0.4";
  version = "0.6";

  src = fetchFromGitHub {
    owner = "curl";
    repo = pname;
    rev = "${pname}-${version}";
    sha256 = "sha256-f9z0gPtHcn3iWFA6MT6ngok0nXBcd6zJ8Tjnb5Lzf6c=";
    hash = "sha256-/Gf7T67LPzVPhjAqTvbLiJOqfKeWvwH/WHelJZTH4ZI=";
  };

  outputs = [ "out" "dev" "man" ];
  separateDebugInfo = stdenv.isLinux;

  enableParallelBuilding = true;

  nativeBuildInputs = [ curl ];
  buildInputs = [ curl ];
  makeFlags = [ "PREFIX=$(out)" ];

  doCheck = true;
  checkInputs = [ perl ];
  nativeCheckInputs = [ python3 python3Packages.packaging ];
  checkTarget = "test";

  meta = with lib; {