eukleides: add getopt in euktoeps wrapper

This commit is contained in:
Vincenzo Mantova 2021-05-23 19:02:36 +01:00
parent 190ba6ee72
commit 8fb57a90eb

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo, readline, texlive }:
{ lib, stdenv, fetchurl, bison, flex, makeWrapper, texinfo, getopt, readline, texlive }:
lib.fix (eukleides: stdenv.mkDerivation rec {
pname = "eukleides";
@ -14,7 +14,7 @@ lib.fix (eukleides: stdenv.mkDerivation rec {
nativeBuildInputs = [ bison flex texinfo makeWrapper ];
buildInputs = [ readline ];
buildInputs = [ getopt readline ];
preConfigure = ''
substituteInPlace Makefile \
@ -32,6 +32,11 @@ lib.fix (eukleides: stdenv.mkDerivation rec {
mkdir -p $out/bin
'';
postInstall = ''
wrapProgram $out/bin/euktoeps \
--prefix PATH : ${lib.makeBinPath [ getopt ]}
'';
outputs = [ "out" "doc" "tex" ];
passthru.tlType = "run";