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

46 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, perl, icmake, utillinux }:
let version = "3.05.01"; in
stdenv.mkDerivation {
2014-11-13 17:47:37 +01:00
name = "yodl-${version}";
2014-11-13 17:47:37 +01:00
buildInputs = [ perl icmake ];
src = fetchFromGitHub {
sha256 = "02vbayvnz5p0055456i8kc8qxywkhn7agfrx1kwxaalbsnrd4g9h";
rev = version;
repo = "yodl";
owner = "fbb-git";
};
sourceRoot = "yodl-${version}-src/yodl";
2014-11-13 17:47:37 +01:00
preConfigure = ''
patchShebangs ./build
patchShebangs scripts/
substituteInPlace INSTALL.im --replace /usr $out
2014-11-13 17:47:37 +01:00
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
2014-11-13 17:47:37 +01:00
'';
buildPhase = ''
./build programs
./build macros
2015-01-14 23:57:54 +01:00
./build man
2014-11-13 17:47:37 +01:00
'';
installPhase = ''
./build install programs
./build install macros
./build install man
'';
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 = https://fbb-git.github.io/yodl/;
2014-11-13 17:47:37 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ nckx pSub ];
2014-11-13 17:47:37 +01:00
platforms = platforms.linux;
};
}