maxx: allow launching individual components
This commit is contained in:
parent
1357268b90
commit
d627ded461
@ -47,7 +47,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
maxx=$out/opt/MaXX
|
maxx=$out/opt/MaXX
|
||||||
mkdir -p "$maxx" $out/share
|
mkdir -p "$maxx" $out/share $maxx/sbin
|
||||||
|
|
||||||
mv -- ./* "$maxx"
|
mv -- ./* "$maxx"
|
||||||
ln -s $maxx/share/icons $out/share
|
ln -s $maxx/share/icons $out/share
|
||||||
@ -60,17 +60,18 @@ in stdenv.mkDerivation {
|
|||||||
while IFS= read -r -d ''$'\0' i; do
|
while IFS= read -r -d ''$'\0' i; do
|
||||||
if isELF "$i"; then
|
if isELF "$i"; then
|
||||||
bin=`patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i"; echo $?`
|
bin=`patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i"; echo $?`
|
||||||
patchelf --set-rpath "${stdenv.lib.makeLibraryPath deps}" "$i"
|
patchelf --set-rpath "$maxx/lib64:$maxx/OpenMotif-2.1.32/lib64:$maxx/OpenMotif-2.3.1/lib64:${stdenv.lib.makeLibraryPath deps}" "$i"
|
||||||
if [ "$bin" -eq 0 ]; then
|
if [ "$bin" -eq 0 ]; then
|
||||||
wrapProgram "$i" \
|
wrapProgram "$i" \
|
||||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||||
--set NIX_REDIRECTS /opt/MaXX=$maxx
|
--set NIX_REDIRECTS /opt/MaXX=$maxx \
|
||||||
|
--prefix PATH : $maxx/sbin
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < <(find "$maxx" -type f -print0)
|
done < <(find "$maxx" -type f -print0)
|
||||||
|
|
||||||
cp ${gcc-unwrapped}/bin/cpp ${gcc-unwrapped}/libexec/gcc/*/*/cc1 $maxx/bin
|
cp ${gcc-unwrapped}/bin/cpp ${gcc-unwrapped}/libexec/gcc/*/*/cc1 $maxx/sbin
|
||||||
for i in $maxx/bin/cpp $maxx/bin/cc1
|
for i in $maxx/sbin/cpp $maxx/sbin/cc1
|
||||||
do
|
do
|
||||||
wrapProgram "$i" \
|
wrapProgram "$i" \
|
||||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||||
@ -88,7 +89,6 @@ in stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
maintainers = [ maintainers.gnidorah ];
|
maintainers = [ maintainers.gnidorah ];
|
||||||
platforms = ["x86_64-linux"];
|
platforms = ["x86_64-linux"];
|
||||||
hydraPlatforms = [];
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
A clone of IRIX Interactive Desktop made in agreement with SGI.
|
A clone of IRIX Interactive Desktop made in agreement with SGI.
|
||||||
Provides simple and fast retro desktop environment.
|
Provides simple and fast retro desktop environment.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user