2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, perl, icmake, util-linux }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yodl";
|
|
|
|
version = "4.02.02";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ icmake ];
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
sha256 = "1kf4h99p9i35fgas8z5wdy2qpd7gqfd645b5z7mfssjzsfdrv745";
|
|
|
|
rev = version;
|
|
|
|
repo = "yodl";
|
|
|
|
owner = "fbb-git";
|
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */yodl)
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./build
|
|
|
|
patchShebangs scripts/
|
|
|
|
substituteInPlace INSTALL.im --replace /usr $out
|
|
|
|
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
|
2020-11-24 20:58:05 +00:00
|
|
|
substituteInPlace scripts/yodl2whatever.in --replace getopt ${util-linux}/bin/getopt
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Set TERM because icmbuild calls tput.
|
|
|
|
TERM = "xterm";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build programs
|
|
|
|
./build macros
|
|
|
|
./build man
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./build install programs
|
|
|
|
./build install macros
|
|
|
|
./build install man
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A package that implements a pre-document language and tools to process it";
|
|
|
|
homepage = "https://fbb-git.gitlab.io/yodl/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|