unscii: fix Darwin build
This commit is contained in:
parent
fb41ef3aaf
commit
27ad6c8f2d
1 changed files with 18 additions and 1 deletions
|
@ -2,6 +2,11 @@
|
|||
, fontforge, SDL, SDL_image, mkfontscale
|
||||
}:
|
||||
|
||||
let
|
||||
perlenv = perl.withPackages (p: with p; [
|
||||
TextCharWidth
|
||||
]);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "unscii";
|
||||
version = "1.1";
|
||||
|
@ -12,11 +17,23 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
[ (perl.withPackages (p: [ p.TextCharWidth ]))
|
||||
[ perlenv
|
||||
bdftopcf fontforge SDL SDL_image
|
||||
mkfontscale
|
||||
];
|
||||
|
||||
# Fixes shebang -> wrapper problem on Darwin
|
||||
postPatch = ''
|
||||
for perltool in *.pl; do
|
||||
substituteInPlace Makefile \
|
||||
--replace "./$perltool" "${perlenv}/bin/perl ./$perltool"
|
||||
done
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue