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

41 lines
1 KiB
Nix
Raw Normal View History

2014-11-13 17:47:37 +01:00
{ stdenv, fetchurl, perl, icmake }:
2014-11-13 17:47:37 +01:00
stdenv.mkDerivation rec {
name = "yodl-${version}";
2015-01-14 23:57:54 +01:00
version = "3.05.00";
2014-11-13 17:47:37 +01:00
buildInputs = [ perl icmake ];
src = fetchurl {
2014-11-13 17:47:37 +01:00
url = "mirror://sourceforge/yodl/yodl_${version}.orig.tar.gz";
2015-01-14 23:57:54 +01:00
sha256 = "12hv5ghrsk6kdi414glg888v3qk3m1nmicl8f0h5k4szm1i00dig";
};
2014-11-13 17:47:37 +01: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 macros
2015-01-14 23:57:54 +01:00
./build man
2014-11-13 17:47:37 +01:00
'';
installPhase = ''
2014-11-13 17:47:37 +01:00
./build install programs $out
./build install macros $out
2015-01-14 23:57:54 +01:00
./build install man $out
'';
2014-11-13 17:47:37 +01: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;
};
}