1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/yodl/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, perl, icmake, utillinux }:
2016-01-09 19:07:20 +00:00
stdenv.mkDerivation rec {
2014-11-13 16:47:37 +00:00
name = "yodl-${version}";
2017-07-01 09:10:23 +01:00
version = "4.01.00";
2017-02-09 08:08:28 +00:00
nativeBuildInputs = [ icmake ];
buildInputs = [ perl ];
src = fetchFromGitHub {
2017-07-01 09:10:23 +01:00
sha256 = "1aahwmj4gmf59lrij2373lkgfj77i3ghdas9c7iqrjwaizb0430p";
rev = version;
repo = "yodl";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */yodl)
'';
2014-11-13 16:47:37 +00:00
preConfigure = ''
patchShebangs ./build
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
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
'';
installPhase = ''
./build install programs
./build install macros
./build install man
'';
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 = https://fbb-git.github.io/yodl/;
2014-11-13 16:47:37 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ nckx pSub ];
2014-11-13 16:47:37 +00:00
platforms = platforms.linux;
};
}