lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 47 lines 1.2 kB view raw
1source $stdenv/setup 2 3outp=$out/lib/steam-runtime 4 5buildDir() { 6 paths="$1" 7 pkgs="$2" 8 9 for pkg in $pkgs; do 10 echo "adding package $pkg" 11 for path in $paths; do 12 if [ -d $pkg/$path ]; then 13 cd $pkg/$path 14 for file in *; do 15 found="" 16 for i in $paths; do 17 if [ -e "$outp/$i/$file" ]; then 18 found=1 19 break 20 fi 21 done 22 if [ -z "$found" ]; then 23 mkdir -p $outp/$path 24 ln -s "$pkg/$path/$file" $outp/$path 25 sovers=$(echo $file | perl -ne 'print if s/.*?\.so\.(.*)/\1/') 26 if [ ! -z "$sovers" ]; then 27 fname=''${file%.''${sovers}} 28 for ver in ''${sovers//./ }; do 29 found="" 30 for i in $paths; do 31 if [ -e "$outp/$i/$fname" ]; then 32 found=1 33 break 34 fi 35 done 36 [ -n "$found" ] || ln -s "$pkg/$path/$file" "$outp/$path/$fname" 37 fname="$fname.$ver" 38 done 39 fi 40 fi 41 done 42 fi 43 done 44 done 45} 46 47eval "$installPhase"