summary refs log tree commit diff
path: root/pkgs/tools/text/sgml/opensp/compat.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/sgml/opensp/compat.nix')
-rw-r--r--pkgs/tools/text/sgml/opensp/compat.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/sgml/opensp/compat.nix b/pkgs/tools/text/sgml/opensp/compat.nix
index 8e521da20848..3e9d9152d36a 100644
--- a/pkgs/tools/text/sgml/opensp/compat.nix
+++ b/pkgs/tools/text/sgml/opensp/compat.nix
@@ -3,13 +3,17 @@
 stdenv.mkDerivation {
   name = "sp-compat-${builtins.substring 7 100 opensp.name}";
 
-  buildCommand = ''
+  phases = [ "fixupPhase" "installPhase" ];
+
+  installPhase = ''
     mkdir -pv $out/bin
     for i in ${opensp}/bin/o*; do
       ln -sv $i $out/bin/''${i#${opensp}/bin/o}
     done
     '';
 
+  setupHook = opensp.setupHook;
+
   meta.description =
     "Compatibility wrapper for old programs looking for original sp programs";
 }