forked from mirrors/nixpkgs
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitLab, perl, icmake, utillinux }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yodl";
|
|
version = "4.02.01";
|
|
|
|
nativeBuildInputs = [ icmake ];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
src = fetchFromGitLab {
|
|
sha256 = "0m8idd8m3z27rix55avchm21sd2spcxgrdf63w65zpvnywq0ydax";
|
|
rev = version;
|
|
repo = "yodl";
|
|
owner = "fbb-git";
|
|
};
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */yodl)
|
|
'';
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./build
|
|
patchShebangs scripts/
|
|
substituteInPlace INSTALL.im --replace /usr $out
|
|
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
|
|
substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt
|
|
'';
|
|
|
|
# Set TERM because icmbuild calls tput.
|
|
TERM = "xterm";
|
|
|
|
buildPhase = ''
|
|
./build programs
|
|
./build macros
|
|
./build man
|
|
'';
|
|
|
|
installPhase = ''
|
|
./build install programs
|
|
./build install macros
|
|
./build install man
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A package that implements a pre-document language and tools to process it";
|
|
homepage = https://fbb-git.gitlab.io/yodl/;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|