about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincenzo Mantova <xworld21@users.sf.net>2021-05-23 19:02:36 +0100
committerVincenzo Mantova <xworld21@users.sf.net>2021-06-21 08:17:11 +0100
commit8fb57a90eb5cb0ed855a8dba71f09b349e1e4a55 (patch)
tree1f49251b7fecd2305e0be50267f3dcff4d288b0a
parent190ba6ee72a27a834e1ab5aa5b180889ca8ec9ba (diff)
eukleides: add getopt in euktoeps wrapper
-rw-r--r--pkgs/applications/science/math/eukleides/default.nix9
1 files 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";