@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub, libxml2, curl, libseccomp }:
2+
3+stdenv.mkDerivation {
4+ name = "rdrview";
5+ version = "unstable-2020-12-22";
6+
7+ src = fetchFromGitHub {
8+ owner = "eafer";
9+ repo = "rdrview";
10+ rev = "7be01fb36a6ab3311a9ad1c8c2c75bf5c1345d93";
11+ sha256 = "00hnvrrrkyp5429rzcvabq2z00lp1l8wsqxw4h7qsdms707mjnxs";
12+ };
13+
14+ buildInputs = [ libxml2 curl libseccomp ];
15+
16+ installPhase = ''
17+ install -Dm755 rdrview -t $out/bin
18+ '';
19+
20+ meta = with stdenv.lib; {
21+ description = "Command line tool to extract main content from a webpage";
22+ homepage = "https://github.com/eafer/rdrview";
23+ license = licenses.asl20;
24+ maintainers = with maintainers; [ djanatyn ];
25+ };
26+}