2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, perl, icmake, util-linux }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2016-01-09 19:07:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yodl";
|
2021-03-10 08:07:35 +00:00
|
|
|
version = "4.03.02";
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2017-02-09 08:08:28 +00:00
|
|
|
nativeBuildInputs = [ icmake ];
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
2008-12-22 18:36:02 +00:00
|
|
|
|
2018-06-30 10:16:36 +01:00
|
|
|
src = fetchFromGitLab {
|
2021-03-10 08:07:35 +00:00
|
|
|
sha256 = "sha256-ZxiF9He0JgqhbnQS2pE7Y85sED8avbdwGuVmFN8/XgE=";
|
2015-09-01 04:42:12 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "yodl";
|
|
|
|
owner = "fbb-git";
|
2008-12-22 18:36:02 +00:00
|
|
|
};
|
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */yodl)
|
|
|
|
'';
|
2015-09-01 04:42:12 +01:00
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
preConfigure = ''
|
2015-05-05 01:37:22 +01:00
|
|
|
patchShebangs ./build
|
2015-09-01 04:42:12 +01:00
|
|
|
patchShebangs scripts/
|
|
|
|
substituteInPlace INSTALL.im --replace /usr $out
|
2014-11-13 16:47:37 +00:00
|
|
|
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
|
2020-11-24 15:29:28 +00:00
|
|
|
substituteInPlace scripts/yodl2whatever.in --replace getopt ${util-linux}/bin/getopt
|
2014-11-13 16:47:37 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-06 19:24:08 +00:00
|
|
|
# Set TERM because icmbuild calls tput.
|
|
|
|
TERM = "xterm";
|
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
buildPhase = ''
|
|
|
|
./build programs
|
|
|
|
./build macros
|
2015-01-14 22:57:54 +00:00
|
|
|
./build man
|
2014-11-13 16:47:37 +00:00
|
|
|
'';
|
|
|
|
|
2008-12-22 18:36:02 +00:00
|
|
|
installPhase = ''
|
2015-05-05 01:37:22 +01:00
|
|
|
./build install programs
|
|
|
|
./build install macros
|
|
|
|
./build install man
|
2008-12-22 18:36:02 +00:00
|
|
|
'';
|
2014-11-13 16:47:37 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2014-11-13 16:47:37 +00:00
|
|
|
description = "A package that implements a pre-document language and tools to process it";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://fbb-git.gitlab.io/yodl/";
|
2014-11-13 16:47:37 +00:00
|
|
|
license = licenses.gpl3;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-11-13 16:47:37 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-12-22 18:36:02 +00:00
|
|
|
}
|