bdfresize: fix configure (#368874)

This commit is contained in:
Gaétan Lepage
2025-01-23 08:27:15 +01:00
committed by GitHub
2 changed files with 21 additions and 4 deletions
@@ -0,0 +1,11 @@
--- a/configure
+++ b/configure
@@ -904,7 +904,7 @@
#line 905 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
+10 -4
View File
@@ -1,19 +1,25 @@
{
lib,
stdenv,
fetchurl,
fetchzip,
}:
stdenv.mkDerivation rec {
pname = "bdfresize";
version = "1.5";
src = fetchurl {
src = fetchzip {
url = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/bdfresize-${version}.tar.gz";
hash = "sha256-RAz8BiCgI35GNSwUoHdMqj8wWXWbCiDe/vyU6EkIl6Y=";
hash = "sha256-C4ZLJIn6vVeVUCpNwMu0vdfQQ3qUz4EVIcPob9NejP0=";
};
patches = [ ./remove-malloc-declaration.patch ];
patches = [
./fix-configure.patch
./remove-malloc-declaration.patch
];
# Fix compilation of getopt; see getopt package for more details
env.NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__";
meta = with lib; {
description = "Tool to resize BDF fonts";