about summary refs log tree commit diff
path: root/pkgs/tools/text/sgml
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2010-12-29 18:04:11 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2010-12-29 18:04:11 +0000
commit0d730b43624c6e1abaf2c6238fc0b9f9f5d5d80b (patch)
tree8512f180aceac24799e45d1d748c4c827f19de47 /pkgs/tools/text/sgml
parentcb843de4020328a9a6a10bee54b1d44ea4cf792a (diff)
Add sp compatibility wrapper
This wrapper is required by some old programs (e.g., po4a which I'm trying to package)

svn path=/nixpkgs/trunk/; revision=25320
Diffstat (limited to 'pkgs/tools/text/sgml')
-rw-r--r--pkgs/tools/text/sgml/opensp/compat.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/tools/text/sgml/opensp/compat.nix b/pkgs/tools/text/sgml/opensp/compat.nix
new file mode 100644
index 0000000000000..8e521da208483
--- /dev/null
+++ b/pkgs/tools/text/sgml/opensp/compat.nix
@@ -0,0 +1,15 @@
+{ stdenv, opensp }:
+
+stdenv.mkDerivation {
+  name = "sp-compat-${builtins.substring 7 100 opensp.name}";
+
+  buildCommand = ''
+    mkdir -pv $out/bin
+    for i in ${opensp}/bin/o*; do
+      ln -sv $i $out/bin/''${i#${opensp}/bin/o}
+    done
+    '';
+
+  meta.description =
+    "Compatibility wrapper for old programs looking for original sp programs";
+}