1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/text/sgml/opensp/compat.nix
Yury G. Kudryashov 0d730b4362 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
2010-12-29 18:04:11 +00:00

16 lines
351 B
Nix

{ 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";
}