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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, perl, icmake, util-linux }:
2016-01-09 20:07:20 +01:00
stdenv.mkDerivation rec {
pname = "yodl";
2021-08-21 23:03:14 +02:00
version = "4.03.03";
2017-02-09 09:08:28 +01:00
nativeBuildInputs = [ icmake ];
buildInputs = [ perl ];
src = fetchFromGitLab {
2021-08-21 23:03:14 +02:00
sha256 = "sha256-MeD/jjhwoiWTb/G8pHrnEEX22h+entPr9MhJ6WHO3DM=";
rev = version;
repo = "yodl";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */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
2020-11-24 16:29:28 +01:00
substituteInPlace scripts/yodl2whatever.in --replace getopt ${util-linux}/bin/getopt
2014-11-13 17:47:37 +01:00
'';
2018-03-06 20:24:08 +01:00
# Set TERM because icmbuild calls tput.
TERM = "xterm";
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 lib; {
2014-11-13 17:47:37 +01:00
description = "A package that implements a pre-document language and tools to process it";
homepage = "https://fbb-git.gitlab.io/yodl/";
2014-11-13 17:47:37 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
2014-11-13 17:47:37 +01:00
platforms = platforms.linux;
};
}