1 { stdenv, lib, fetchFromGitHub, makeWrapper, perlPackages
3 , uriFindSupport ? true
8 [ perlPackages.MIMETools perlPackages.HTMLParser ]
9 ++ lib.optional cursesSupport perlPackages.CursesUI
10 ++ lib.optional uriFindSupport perlPackages.URIFind;
12 in stdenv.mkDerivation rec {
13 pname = "extract_url";
16 src = fetchFromGitHub {
20 sha256 = "05589lp15jmcpbj4y9a3hmf6n2gsqrm4ybcyh3hd4j6pc7hmnhny";
23 nativeBuildInputs = [ makeWrapper ];
24 buildInputs = [ perlPackages.perl ] ++ perlDeps;
26 makeFlags = [ "prefix=$(out)" ];
27 installFlags = [ "INSTALL=install" ];
30 wrapProgram "$out/bin/extract_url" \
31 --set PERL5LIB "${perlPackages.makeFullPerlPath perlDeps}"
35 homepage = "https://www.memoryhole.net/~kyle/extract_url/";
36 description = "Extracts URLs from MIME messages or plain text";
37 license = licenses.bsd2;
38 maintainers = [ maintainers.qyliss ];
39 platforms = platforms.unix;