1 { lib, stdenv, fetchurl, openssl }:
3 stdenv.mkDerivation rec {
8 url = "https://njw.me.uk/getxbook/${pname}-${version}.tar.xz";
9 sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
12 env.NIX_CFLAGS_COMPILE = builtins.toString (
13 [ "-Wno-error=deprecated-declarations" ]
14 ++ lib.optionals (!stdenv.cc.isClang) [
15 "-Wno-error=format-truncation"
16 "-Wno-error=stringop-overflow"
20 buildInputs = [ openssl ];
22 makeFlags = [ "PREFIX=$(out)" ];
25 description = "A collection of tools to download books from Google Books";
26 homepage = "https://njw.me.uk/getxbook/";
27 license = licenses.isc;
28 maintainers = with maintainers; [ obadz ];
29 platforms = platforms.all;