1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/tools/text/sgml/opensp/compat.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

22 lines
488 B
Nix

{ 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;
meta = opensp.meta // {
description = "Compatibility wrapper for old programs looking for original sp programs";
platforms = stdenv.lib.platforms.unix;
};
}