From 8fb57a90eb5cb0ed855a8dba71f09b349e1e4a55 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova Date: Sun, 23 May 2021 19:02:36 +0100 Subject: eukleides: add getopt in euktoeps wrapper --- pkgs/applications/science/math/eukleides/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix index fe8969a36b51e..e96438b5b3e27 100644 --- a/pkgs/applications/science/math/eukleides/default.nix +++ b/pkgs/applications/science/math/eukleides/default.nix @@ -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"; -- cgit 1.4.1