nixpkgs/pkgs/development/tools/misc/yodl/default.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2014-11-13 16:47:37 +00:00
{ stdenv, fetchurl, perl, icmake }:
2014-11-13 16:47:37 +00:00
stdenv.mkDerivation rec {
name = "yodl-${version}";
2014-11-14 12:05:46 +00:00
version = "3.04.00";
2014-11-13 16:47:37 +00:00
buildInputs = [ perl icmake ];
src = fetchurl {
2014-11-13 16:47:37 +00:00
url = "mirror://sourceforge/yodl/yodl_${version}.orig.tar.gz";
2014-11-14 12:05:46 +00:00
sha256 = "14sqd03j3w9g5l5rkdnqyxv174yz38m39ycncx86bq86g63igcv6";
};
2014-11-13 16:47:37 +00:00
preConfigure = ''
patchShebangs scripts/.
sed -i 's;/usr;;g' INSTALL.im
substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
'';
buildPhase = ''
./build programs
./build man
./build macros
'';
installPhase = ''
2014-11-13 16:47:37 +00:00
./build install programs $out
./build install man $out
./build install macros $out
'';
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";
homepage = http://yodl.sourceforge.net/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}