nixpkgs/pkgs/tools/text/sgml/opensp/compat.nix

20 lines
429 B
Nix
Raw Normal View History

{ stdenv, opensp }:
stdenv.mkDerivation {
name = "sp-compat-${builtins.substring 7 100 opensp.name}";
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";
}