2015-08-31 20:42:12 -07:00
|
|
|
{ stdenv, fetchFromGitHub, perl, icmake, utillinux }:
|
2010-07-28 04:55:54 -07:00
|
|
|
|
2016-01-09 11:07:20 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-13 08:47:37 -08:00
|
|
|
name = "yodl-${version}";
|
2017-07-01 01:10:23 -07:00
|
|
|
version = "4.01.00";
|
2010-07-28 04:55:54 -07:00
|
|
|
|
2017-02-09 00:08:28 -08:00
|
|
|
nativeBuildInputs = [ icmake ];
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
2008-12-22 10:36:02 -08:00
|
|
|
|
2015-08-31 20:42:12 -07:00
|
|
|
src = fetchFromGitHub {
|
2017-07-01 01:10:23 -07:00
|
|
|
sha256 = "1aahwmj4gmf59lrij2373lkgfj77i3ghdas9c7iqrjwaizb0430p";
|
2015-08-31 20:42:12 -07:00
|
|
|
rev = version;
|
|
|
|
repo = "yodl";
|
|
|
|
owner = "fbb-git";
|
2008-12-22 10:36:02 -08:00
|
|
|
};
|
|
|
|
|
2017-11-02 05:54:20 -07:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */yodl)
|
|
|
|
'';
|
2015-08-31 20:42:12 -07:00
|
|
|
|
2014-11-13 08:47:37 -08:00
|
|
|
preConfigure = ''
|
2015-05-04 17:37:22 -07:00
|
|
|
patchShebangs ./build
|
2015-08-31 20:42:12 -07:00
|
|
|
patchShebangs scripts/
|
|
|
|
substituteInPlace INSTALL.im --replace /usr $out
|
2014-11-13 08:47:37 -08:00
|
|
|
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
|
2015-05-04 17:37:22 -07:00
|
|
|
substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
|
2014-11-13 08:47:37 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build programs
|
|
|
|
./build macros
|
2015-01-14 14:57:54 -08:00
|
|
|
./build man
|
2014-11-13 08:47:37 -08:00
|
|
|
'';
|
|
|
|
|
2008-12-22 10:36:02 -08:00
|
|
|
installPhase = ''
|
2015-05-04 17:37:22 -07:00
|
|
|
./build install programs
|
|
|
|
./build install macros
|
|
|
|
./build install man
|
2008-12-22 10:36:02 -08:00
|
|
|
'';
|
2014-11-13 08:47:37 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A package that implements a pre-document language and tools to process it";
|
2015-08-31 20:42:12 -07:00
|
|
|
homepage = https://fbb-git.github.io/yodl/;
|
2014-11-13 08:47:37 -08:00
|
|
|
license = licenses.gpl3;
|
2018-01-16 13:59:13 -08:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-11-13 08:47:37 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-12-22 10:36:02 -08:00
|
|
|
}
|