2015-09-01 04:42:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl, icmake, utillinux }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2016-01-09 19:07:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-13 16:47:37 +00:00
|
|
|
name = "yodl-${version}";
|
2016-01-09 19:07:20 +00:00
|
|
|
version = "3.06.00";
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
buildInputs = [ perl icmake ];
|
2008-12-22 18:36:02 +00:00
|
|
|
|
2015-09-01 04:42:12 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-01-09 19:07:20 +00:00
|
|
|
sha256 = "03n03bxc5lh3v9yzdikqrzzdvrna8zf98mlg2dhnn5z5sb5jhyzc";
|
2015-09-01 04:42:12 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "yodl";
|
|
|
|
owner = "fbb-git";
|
2008-12-22 18:36:02 +00:00
|
|
|
};
|
|
|
|
|
2015-09-01 04:42:12 +01:00
|
|
|
sourceRoot = "yodl-${version}-src/yodl";
|
|
|
|
|
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
|
2015-05-05 01:37:22 +01:00
|
|
|
substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A package that implements a pre-document language and tools to process it";
|
2015-09-01 04:42:12 +01:00
|
|
|
homepage = https://fbb-git.github.io/yodl/;
|
2014-11-13 16:47:37 +00:00
|
|
|
license = licenses.gpl3;
|
2015-09-01 04:42:12 +01:00
|
|
|
maintainers = with maintainers; [ nckx pSub ];
|
2014-11-13 16:47:37 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-12-22 18:36:02 +00:00
|
|
|
}
|