nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 31 lines 833 B view raw
1{ lib, stdenv, fetchurl, openssl }: 2 3stdenv.mkDerivation rec { 4 pname = "getxbook"; 5 version = "1.2"; 6 7 src = fetchurl { 8 url = "https://njw.me.uk/getxbook/${pname}-${version}.tar.xz"; 9 sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs"; 10 }; 11 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" 17 ] 18 ); 19 20 buildInputs = [ openssl ]; 21 22 makeFlags = [ "PREFIX=$(out)" ]; 23 24 meta = with lib; { 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; 30 }; 31}