mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
86afcccecb
You can't run fixupPhase before installPhase. http://hydra.nixos.org/build/8149119
20 lines
421 B
Nix
20 lines
421 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.description =
|
|
"Compatibility wrapper for old programs looking for original sp programs";
|
|
}
|