eukleides: add getopt in euktoeps wrapper
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user