1 { lib, stdenv, fetchFromGitLab, perl, icmake, util-linux }:
3 stdenv.mkDerivation rec {
7 nativeBuildInputs = [ icmake ];
9 buildInputs = [ perl ];
11 src = fetchFromGitLab {
12 hash = "sha256-MeD/jjhwoiWTb/G8pHrnEEX22h+entPr9MhJ6WHO3DM=";
19 sourceRoot=$(echo */yodl)
24 patchShebangs scripts/
25 substituteInPlace INSTALL.im --replace /usr $out
26 substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
27 substituteInPlace scripts/yodl2whatever.in --replace getopt ${util-linux}/bin/getopt
30 # Set TERM because icmbuild calls tput.
40 ./build install programs
41 ./build install macros
46 description = "Package that implements a pre-document language and tools to process it";
47 homepage = "https://fbb-git.gitlab.io/yodl/";
48 license = licenses.gpl3;
49 maintainers = with maintainers; [ pSub ];
50 platforms = platforms.linux;