3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/sgml/opensp/compat.nix

21 lines
445 B
Nix
Raw Normal View History

{ stdenv, opensp }:
stdenv.mkDerivation {
name = "sp-compat-${stdenv.lib.getVersion opensp}";
phases = [ "installPhase" "fixupPhase" ];
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;
2016-08-02 16:34:11 +01:00
meta = opensp.meta // {
description = "Compatibility wrapper for old programs looking for original sp programs";
};
}