3
0
Fork 0
forked from mirrors/nixpkgs

Another attempt to eradicate ensureDir

See c556a6ea46.
This commit is contained in:
Eelco Dolstra 2014-06-30 14:56:10 +02:00
parent 47075812ce
commit 40f7b0f9df
128 changed files with 173 additions and 173 deletions

View file

@ -67,7 +67,7 @@ in rec {
# Generate the HTML manual. # Generate the HTML manual.
dst=$out/share/doc/nixos dst=$out/share/doc/nixos
ensureDir $dst mkdir -p $dst
xsltproc $xsltFlags --nonet --xinclude \ xsltproc $xsltFlags --nonet --xinclude \
--output $dst/manual.html \ --output $dst/manual.html \
${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \ ${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \

View file

@ -78,7 +78,7 @@ done
cat pathlist | sed -e 's/=\(.*\)=\(.*\)=/\\=\1=\2\\=/' | tee pathlist.safer cat pathlist | sed -e 's/=\(.*\)=\(.*\)=/\\=\1=\2\\=/' | tee pathlist.safer
ensureDir $out/iso mkdir -p $out/iso
genCommand="genisoimage -iso-level 4 -r -J $bootFlags -hide-rr-moved -graft-points -path-list pathlist.safer ${volumeID:+-V $volumeID}" genCommand="genisoimage -iso-level 4 -r -J $bootFlags -hide-rr-moved -graft-points -path-list pathlist.safer ${volumeID:+-V $volumeID}"
if test -z "$compressImage"; then if test -z "$compressImage"; then
$genCommand -o $out/iso/$isoName $genCommand -o $out/iso/$isoName
@ -87,5 +87,5 @@ else
fi fi
ensureDir $out/nix-support mkdir -p $out/nix-support
echo $system > $out/nix-support/system echo $system > $out/nix-support/system

View file

@ -48,11 +48,11 @@ for ((n = 0; n < ${#objects[*]}; n++)); do
fi fi
done done
ensureDir $out/tarball mkdir -p $out/tarball
tar cvJf $out/tarball/$fileName.tar.xz * tar cvJf $out/tarball/$fileName.tar.xz *
ensureDir $out/nix-support mkdir -p $out/nix-support
echo $system > $out/nix-support/system echo $system > $out/nix-support/system
echo "file system-tarball $out/tarball/$fileName.tar.xz" > $out/nix-support/hydra-build-products echo "file system-tarball $out/tarball/$fileName.tar.xz" > $out/nix-support/hydra-build-products

View file

@ -12,7 +12,7 @@ let
phases = [ "installPhase" ]; phases = [ "installPhase" ];
buildInputs = [ jdk ]; buildInputs = [ jdk ];
installPhase = '' installPhase = ''
ensureDir $out/lib mkdir -p $out/lib
source ${activemq}/lib/classpath.env source ${activemq}/lib/classpath.env
export CLASSPATH export CLASSPATH
ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java

View file

@ -6,7 +6,7 @@ let
acpiConfDir = pkgs.runCommand "acpi-events" {} acpiConfDir = pkgs.runCommand "acpi-events" {}
'' ''
ensureDir $out mkdir -p $out
${ ${
# Generate a configuration file for each event. (You can't have # Generate a configuration file for each event. (You can't have
# multiple events in one config file...) # multiple events in one config file...)

View file

@ -12,7 +12,7 @@ let
nagiosObjectDefs = cfg.objectDefs; nagiosObjectDefs = cfg.objectDefs;
nagiosObjectDefsDir = pkgs.runCommand "nagios-objects" {inherit nagiosObjectDefs;} nagiosObjectDefsDir = pkgs.runCommand "nagios-objects" {inherit nagiosObjectDefs;}
"ensureDir $out; ln -s $nagiosObjectDefs $out/"; "mkdir -p $out; ln -s $nagiosObjectDefs $out/";
nagiosCfgFile = pkgs.writeText "nagios.cfg" nagiosCfgFile = pkgs.writeText "nagios.cfg"
'' ''

View file

@ -13,7 +13,7 @@ let
}; };
buildInputs = [ python ]; buildInputs = [ python ];
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
# Make it work for kernels 3.x, not so different than 2.6 # Make it work for kernels 3.x, not so different than 2.6
sed -i 's/2\.6/4.0/' system_health.py sed -i 's/2\.6/4.0/' system_health.py
cp system_health.py $out/bin cp system_health.py $out/bin

View file

@ -11,7 +11,7 @@ let
}; };
afsConfig = pkgs.runCommand "afsconfig" {} '' afsConfig = pkgs.runCommand "afsconfig" {} ''
ensureDir $out mkdir -p $out
echo ${cfg.cellName} > $out/ThisCell echo ${cfg.cellName} > $out/ThisCell
cp ${cellServDB} $out/CellServDB cp ${cellServDB} $out/CellServDB
echo "/afs:${cfg.cacheDirectory}:${cfg.cacheSize}" > $out/cacheinfo echo "/afs:${cfg.cacheDirectory}:${cfg.cacheSize}" > $out/cacheinfo

View file

@ -3,7 +3,7 @@ source $stdenv/setup
doSub() { doSub() {
local src=$1 local src=$1
local dst=$2 local dst=$2
ensureDir $(dirname $dst) mkdir -p $(dirname $dst)
substituteAll $src $dst substituteAll $src $dst
} }
@ -28,4 +28,4 @@ for i in $substFiles; do
fi fi
done done
ensureDir $out/bin mkdir -p $out/bin

View file

@ -14,7 +14,7 @@ let
name = "dbus-conf"; name = "dbus-conf";
preferLocalBuild = true; preferLocalBuild = true;
buildCommand = '' buildCommand = ''
ensureDir $out mkdir -p $out
cp -v ${pkgs.dbus.daemon}/etc/dbus-1/system.conf $out/system.conf cp -v ${pkgs.dbus.daemon}/etc/dbus-1/system.conf $out/system.conf

View file

@ -80,7 +80,7 @@ let
# !!! should be in lib # !!! should be in lib
writeTextInDir = name: text: writeTextInDir = name: text:
pkgs.runCommand name {inherit text;} "ensureDir $out; echo -n \"$text\" > $out/$name"; pkgs.runCommand name {inherit text;} "mkdir -p $out; echo -n \"$text\" > $out/$name";
enableSSL = any (vhost: vhost.enableSSL) allHosts; enableSSL = any (vhost: vhost.enableSSL) allHosts;
@ -194,7 +194,7 @@ let
) null ([ cfg ] ++ subservices); ) null ([ cfg ] ++ subservices);
documentRoot = if maybeDocumentRoot != null then maybeDocumentRoot else documentRoot = if maybeDocumentRoot != null then maybeDocumentRoot else
pkgs.runCommand "empty" {} "ensureDir $out"; pkgs.runCommand "empty" {} "mkdir -p $out";
documentRootConf = '' documentRootConf = ''
DocumentRoot "${documentRoot}" DocumentRoot "${documentRoot}"

View file

@ -90,7 +90,7 @@ let
installPhase = installPhase =
'' ''
ensureDir $out mkdir -p $out
cp -r * $out cp -r * $out
cp ${mediawikiConfig} $out/LocalSettings.php cp ${mediawikiConfig} $out/LocalSettings.php
sed -i 's|/bin/bash|${pkgs.stdenv.shell}|' \ sed -i 's|/bin/bash|${pkgs.stdenv.shell}|' \
@ -103,7 +103,7 @@ let
mediawikiScripts = pkgs.runCommand "mediawiki-${config.id}-scripts" mediawikiScripts = pkgs.runCommand "mediawiki-${config.id}-scripts"
{ buildInputs = [ pkgs.makeWrapper ]; } { buildInputs = [ pkgs.makeWrapper ]; }
'' ''
ensureDir $out/bin mkdir -p $out/bin
for i in changePassword.php createAndPromote.php userOptions.php edit.php nukePage.php update.php; do for i in changePassword.php createAndPromote.php userOptions.php edit.php nukePage.php update.php; do
makeWrapper ${php}/bin/php $out/bin/mediawiki-${config.id}-$(basename $i .php) \ makeWrapper ${php}/bin/php $out/bin/mediawiki-${config.id}-$(basename $i .php) \
--add-flags ${mediawikiRoot}/maintenance/$i --add-flags ${mediawikiRoot}/maintenance/$i

View file

@ -9,7 +9,7 @@ let
cgi = pkgs.stdenv.mkDerivation { cgi = pkgs.stdenv.mkDerivation {
name = "mercurial-cgi"; name = "mercurial-cgi";
buildCommand = '' buildCommand = ''
ensureDir $out mkdir -p $out
cp -v ${mercurial}/share/cgi-bin/hgweb.cgi $out cp -v ${mercurial}/share/cgi-bin/hgweb.cgi $out
sed -i "s|/path/to/repo/or/config|$out/hgweb.config|" $out/hgweb.cgi sed -i "s|/path/to/repo/or/config|$out/hgweb.config|" $out/hgweb.cgi
echo " echo "

View file

@ -26,7 +26,7 @@ let
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
buildCommand = '' buildCommand = ''
ensureDir $out/gtk-3.0/ mkdir -p $out/gtk-3.0/
# This wrapper ensures that we actually get fonts # This wrapper ensures that we actually get fonts
makeWrapper ${pkgs.lightdm_gtk_greeter}/sbin/lightdm-gtk-greeter \ makeWrapper ${pkgs.lightdm_gtk_greeter}/sbin/lightdm-gtk-greeter \

View file

@ -27,7 +27,7 @@ let
unpackedTheme = pkgs.stdenv.mkDerivation { unpackedTheme = pkgs.stdenv.mkDerivation {
name = "slim-theme"; name = "slim-theme";
buildCommand = '' buildCommand = ''
ensureDir $out mkdir -p $out
cd $out cd $out
unpackFile ${cfg.theme} unpackFile ${cfg.theme}
ln -s * default ln -s * default

View file

@ -140,7 +140,7 @@ let
udevRules = pkgs.stdenv.mkDerivation { udevRules = pkgs.stdenv.mkDerivation {
name = "udev-rules"; name = "udev-rules";
buildCommand = '' buildCommand = ''
ensureDir $out mkdir -p $out
echo 'ENV{LD_LIBRARY_PATH}="${extraUtils}/lib"' > $out/00-env.rules echo 'ENV{LD_LIBRARY_PATH}="${extraUtils}/lib"' > $out/00-env.rules

View file

@ -3,7 +3,7 @@ source $stdenv/setup
ttys=($ttys) ttys=($ttys)
themes=($themes) themes=($themes)
ensureDir $out mkdir -p $out
defaultName=$(cd $default && ls | grep -v default) defaultName=$(cd $default && ls | grep -v default)
echo $defaultName echo $defaultName

View file

@ -379,7 +379,7 @@ in
system.build.vm = pkgs.runCommand "nixos-vm" { preferLocalBuild = true; } system.build.vm = pkgs.runCommand "nixos-vm" { preferLocalBuild = true; }
'' ''
ensureDir $out/bin mkdir -p $out/bin
ln -s ${config.system.build.toplevel} $out/system ln -s ${config.system.build.toplevel} $out/system
ln -s ${pkgs.writeScript "run-nixos-vm" startVM} $out/bin/run-${vmName}-vm ln -s ${pkgs.writeScript "run-nixos-vm" startVM} $out/bin/run-${vmName}-vm
''; '';

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp espeakedit $out/bin cp espeakedit $out/bin
''; '';

View file

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
ensureDir "$out" mkdir -p "$out"
scons \ scons \
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \ -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
$sconsFlags "prefix=$out" $sconsFlags "prefix=$out"

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp praat $out/bin cp praat $out/bin
''; '';

View file

@ -43,8 +43,8 @@ in stdenv.mkDerivation rec {
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = ''
ensureDir $out/share/atom mkdir -p $out/share/atom
ensureDir $out/bin mkdir -p $out/bin
tar -C $out/share/atom -xvf $src tar -C $out/share/atom -xvf $src
patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
$out/share/atom/atom $out/share/atom/atom

View file

@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
ensureDir $out/share/man/man1 mkdir -p $out/share/man/man1
ensureDir $out/share/man/man5 mkdir -p $out/share/man/man5
cp dhex $out/bin cp dhex $out/bin
cp dhex.1 $out/share/man/man1 cp dhex.1 $out/share/man/man1

View file

@ -16,10 +16,10 @@ stdenv.mkDerivation rec {
installPhase = installPhase =
'' ''
ensureDir "$out/share/doc/${name}" mkdir -p "$out/share/doc/${name}"
cp -v readme.md "$out/share/doc/${name}" cp -v readme.md "$out/share/doc/${name}"
ensureDir "$out/share/emacs/site-lisp/" mkdir -p "$out/share/emacs/site-lisp/"
cp *.el "$out/share/emacs/site-lisp/" cp *.el "$out/share/emacs/site-lisp/"
''; '';

View file

@ -18,7 +18,7 @@ in stdenv.mkDerivation {
installPhase = '' installPhase = ''
cd emacs; cd emacs;
ensureDir "$out/share/emacs/site-lisp" "$out/bin" mkdir -p "$out/share/emacs/site-lisp" "$out/bin"
EMACSDIR=$out/share/emacs/site-lisp make simple-install install-ocamltags EMACSDIR=$out/share/emacs/site-lisp make simple-install install-ocamltags
''; '';

View file

@ -15,7 +15,7 @@ in stdenv.mkDerivation {
buildInputs = [ emacs ]; buildInputs = [ emacs ];
installPhase = '' installPhase = ''
ensureDir "$out/share/emacs/site-lisp" mkdir -p "$out/share/emacs/site-lisp"
cp *.el *.elc "$out/share/emacs/site-lisp" cp *.el *.elc "$out/share/emacs/site-lisp"
''; '';

View file

@ -62,7 +62,7 @@ in mkDerivation rec {
''; '';
postInstall = '' postInstall = ''
ensureDir $out/Applications mkdir -p $out/Applications
cp -r src/MacVim/build/Release/MacVim.app $out/Applications cp -r src/MacVim/build/Release/MacVim.app $out/Applications
rm $out/bin/{Vimdiff,Vimtutor,Vim,ex,rVim,rview,view} rm $out/bin/{Vimdiff,Vimtutor,Vim,ex,rVim,rview,view}

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
ensureDir $out/bin $out/share mkdir -p $out/bin $out/share
cp -a . $out/share/alchemy cp -a . $out/share/alchemy
cat >> $out/bin/alchemy << EOF cat >> $out/bin/alchemy << EOF
#!/bin/sh #!/bin/sh

View file

@ -24,12 +24,12 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
ensureDir "$out/bin" mkdir -p "$out/bin"
echo "${mono}/bin/mono $out/KeePass.exe" > $out/bin/keepass echo "${mono}/bin/mono $out/KeePass.exe" > $out/bin/keepass
chmod +x $out/bin/keepass chmod +x $out/bin/keepass
echo $out echo $out
cp -r ./* $out/ cp -r ./* $out/
ensureDir "$out/share/applications" mkdir -p "$out/share/applications"
cp ${desktopItem}/share/applications/* $out/share/applications cp ${desktopItem}/share/applications/* $out/share/applications
''; '';

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin $out/share mkdir -p $out/bin $out/share
cp -R unix/librecad $out/bin cp -R unix/librecad $out/bin
cp -R unix/resources $out/share/librecad cp -R unix/resources $out/share/librecad
''; '';

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation {
configurePhase = "qmake PREFIX=$out"; configurePhase = "qmake PREFIX=$out";
installPhase = '' installPhase = ''
ensureDir $out/bin $out/share mkdir -p $out/bin $out/share
cp -R unix/librecad $out/bin cp -R unix/librecad $out/bin
cp -R unix/resources $out/share/librecad cp -R unix/resources $out/share/librecad
''; '';

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
# http://synergy-foss.org/spit/issues/details/3317/ # http://synergy-foss.org/spit/issues/details/3317/
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp ../bin/synergyc $out/bin cp ../bin/synergyc $out/bin
cp ../bin/synergys $out/bin cp ../bin/synergys $out/bin
cp ../bin/synergyd $out/bin cp ../bin/synergyd $out/bin

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl pcre ]; buildInputs = [ openssl pcre ];
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp vanitygen $out/bin cp vanitygen $out/bin
cp keyconv $out/bin/vanitygen-keyconv cp keyconv $out/bin/vanitygen-keyconv
''; '';

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
buildInputs = [ patchelf ]; buildInputs = [ patchelf ];
installPhase = '' installPhase = ''
ensureDir "$out/bin/" mkdir -p "$out/bin/"
cp -r "btsync" "$out/bin/" cp -r "btsync" "$out/bin/"
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \

View file

@ -8,7 +8,7 @@ mkChromiumDerivation (base: rec {
buildTargets = [ "mksnapshot" "chrome" ]; buildTargets = [ "mksnapshot" "chrome" ];
installPhase = '' installPhase = ''
ensureDir "$libExecPath" mkdir -p "$libExecPath"
cp -v "$buildPath/"*.pak "$libExecPath/" cp -v "$buildPath/"*.pak "$libExecPath/"
cp -v "$buildPath/icudtl.dat" "$libExecPath/" cp -v "$buildPath/icudtl.dat" "$libExecPath/"
cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/" cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"

View file

@ -67,7 +67,7 @@ in stdenv.mkDerivation {
browserBinary = "${chromium.browser}/libexec/chromium/chromium"; browserBinary = "${chromium.browser}/libexec/chromium/chromium";
sandboxBinary = "${chromium.sandbox}/bin/chromium-sandbox"; sandboxBinary = "${chromium.sandbox}/bin/chromium-sandbox";
in '' in ''
ensureDir "$out/bin" "$out/share/applications" mkdir -p "$out/bin" "$out/share/applications"
ln -s "${chromium.browser}/share" "$out/share" ln -s "${chromium.browser}/share" "$out/share"
makeWrapper "${browserBinary}" "$out/bin/chromium" \ makeWrapper "${browserBinary}" "$out/bin/chromium" \

View file

@ -22,7 +22,7 @@ let
else if source.channel == "stable" then "chrome" else if source.channel == "stable" then "chrome"
else "chrome-${source.channel}"; else "chrome-${source.channel}";
in '' in ''
ensureDir plugins mkdir -p plugins
ar p "$src" data.tar.lzma | tar xJ -C plugins --strip-components=4 \ ar p "$src" data.tar.lzma | tar xJ -C plugins --strip-components=4 \
./opt/google/${chan}/PepperFlash \ ./opt/google/${chan}/PepperFlash \
./opt/google/${chan}/libpdf.so ./opt/google/${chan}/libpdf.so
@ -53,7 +53,7 @@ let
pdfInfo = "#${pdfName}#${pdfDescription};${pdfMimeTypes}"; pdfInfo = "#${pdfName}#${pdfDescription};${pdfMimeTypes}";
in '' in ''
install -vD libpdf.so "$pdf/lib/libpdf.so" install -vD libpdf.so "$pdf/lib/libpdf.so"
ensureDir "$pdf/nix-support" mkdir -p "$pdf/nix-support"
echo "--register-pepper-plugins='$pdf/lib/libpdf.so${pdfInfo}'" \ echo "--register-pepper-plugins='$pdf/lib/libpdf.so${pdfInfo}'" \
> "$pdf/nix-support/chromium-flags" > "$pdf/nix-support/chromium-flags"
@ -63,7 +63,7 @@ let
install -vD PepperFlash/libpepflashplayer.so \ install -vD PepperFlash/libpepflashplayer.so \
"$flash/lib/libpepflashplayer.so" "$flash/lib/libpepflashplayer.so"
ensureDir "$flash/nix-support" mkdir -p "$flash/nix-support"
echo "--ppapi-flash-path='$flash/lib/libpepflashplayer.so'" \ echo "--ppapi-flash-path='$flash/lib/libpepflashplayer.so'" \
"--ppapi-flash-version=$flashVersion" \ "--ppapi-flash-version=$flashVersion" \
> "$flash/nix-support/chromium-flags" > "$flash/nix-support/chromium-flags"

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation {
outputs = [ "out" "sandbox" "bundled" "main" ]; outputs = [ "out" "sandbox" "bundled" "main" ];
installPhase = '' installPhase = ''
ensureDir "$out" "$sandbox" "$bundled" "$main" mkdir -p "$out" "$sandbox" "$bundled" "$main"
header "copying browser main sources to $main" header "copying browser main sources to $main"
find . -mindepth 1 -maxdepth 1 \ find . -mindepth 1 -maxdepth 1 \

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation {
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
installPhase = '' installPhase = ''
ensureDir "$out/bin/" "$out/share/applications" mkdir -p "$out/bin/" "$out/share/applications"
cp data/dropbox.desktop "$out/share/applications" cp data/dropbox.desktop "$out/share/applications"
substitute "dropbox.in" "$out/bin/dropbox" \ substitute "dropbox.in" "$out/bin/dropbox" \
--replace '@PACKAGE_VERSION@' ${version} \ --replace '@PACKAGE_VERSION@' ${version} \

View file

@ -70,9 +70,9 @@ in stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir "$out/${appdir}" mkdir -p "$out/${appdir}"
cp -r ".dropbox-dist/"* "$out/${appdir}/" cp -r ".dropbox-dist/"* "$out/${appdir}/"
ensureDir "$out/bin" mkdir -p "$out/bin"
ln -s "$out/${appdir}/dropbox" "$out/bin/dropbox" ln -s "$out/${appdir}/dropbox" "$out/bin/dropbox"
patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \ patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \
@ -83,7 +83,7 @@ in stdenv.mkDerivation {
find "$out/${appdir}" -type f -a -perm +0100 \ find "$out/${appdir}" -type f -a -perm +0100 \
-print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \; -print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \;
ensureDir "$out/share/applications" mkdir -p "$out/share/applications"
cp "${desktopItem}/share/applications/"* $out/share/applications cp "${desktopItem}/share/applications/"* $out/share/applications
''; '';

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
buildPhase = "make libskype.so libskype_dbus.so"; buildPhase = "make libskype.so libskype_dbus.so";
installPhase = '' installPhase = ''
ensureDir $out/pixmaps/pidgin/protocols/{16,22,48} $out/bin $out/lib/pidgin mkdir -p $out/pixmaps/pidgin/protocols/{16,22,48} $out/bin $out/lib/pidgin
cp icons/16/skypeout.png $out/pixmaps/pidgin/protocols/16 cp icons/16/skypeout.png $out/pixmaps/pidgin/protocols/16
cp icons/22/skypeout.png $out/pixmaps/pidgin/protocols/22 cp icons/22/skypeout.png $out/pixmaps/pidgin/protocols/22
cp icons/48/skypeout.png $out/pixmaps/pidgin/protocols/48 cp icons/48/skypeout.png $out/pixmaps/pidgin/protocols/48

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/lib/irssi/modules mkdir -p $out/lib/irssi/modules
cp src/.libs/libfish.so $out/lib/irssi/modules cp src/.libs/libfish.so $out/lib/irssi/modules
''; '';

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation {
buildPhase = "ant package-only"; buildPhase = "ant package-only";
installPhase = '' installPhase = ''
ensureDir $out/share/freenet $out/bin mkdir -p $out/share/freenet $out/bin
cp lib/bcprov.jar $out/share/freenet cp lib/bcprov.jar $out/share/freenet
cp lib/freenet/freenet-ext.jar $out/share/freenet cp lib/freenet/freenet-ext.jar $out/share/freenet
cp dist/freenet.jar $out/share/freenet cp dist/freenet.jar $out/share/freenet

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp -r ./bin $out cp -r ./bin $out
''; '';

View file

@ -23,10 +23,10 @@ stdenv.mkDerivation {
inherit bash xulrunner; inherit bash xulrunner;
installPhase = '' installPhase = ''
ensureDir "$out/libexec/zotero" mkdir -p "$out/libexec/zotero"
cp -vR * "$out/libexec/zotero/" cp -vR * "$out/libexec/zotero/"
ensureDir "$out/bin" mkdir -p "$out/bin"
substituteAll "${./zotero.sh}" "$out/bin/zotero" substituteAll "${./zotero.sh}" "$out/bin/zotero"
chmod +x "$out/bin/zotero" chmod +x "$out/bin/zotero"
''; '';

View file

@ -38,7 +38,7 @@ rec {
phaseNames = ["doConfigure" "doMake" "doDeploy"]; phaseNames = ["doConfigure" "doMake" "doDeploy"];
doDeploy = a.fullDepEntry '' doDeploy = a.fullDepEntry ''
ensureDir "$out/bin" "$out/share/gap/" mkdir -p "$out/bin" "$out/share/gap/"
cp -r . "$out/share/gap/build-dir" cp -r . "$out/share/gap/build-dir"

View file

@ -21,8 +21,8 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out mkdir -p $out
ensureDir $out/bin mkdir -p $out/bin
cp git-bz $out/bin cp git-bz $out/bin
wrapProgram $out/bin/git-bz \ wrapProgram $out/bin/git-bz \
--prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $pysqlite)" --prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $pysqlite)"

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp svn-all-fast-export $out/bin cp svn-all-fast-export $out/bin
''; '';

View file

@ -30,9 +30,9 @@ for i in ${bin} ; do
${i} ${i}
done done
ensureDir $out/bin mkdir -p $out/bin
ensureDir $out/lib mkdir -p $out/lib
ensureDir $out/share/MakeMKV mkdir -p $out/share/MakeMKV
cp ${lib} ${out}/lib cp ${lib} ${out}/lib
cp ${bin} ${out}/bin cp ${bin} ${out}/bin
cp makemkv-bin-${ver}/src/share/* $out/share/MakeMKV cp makemkv-bin-${ver}/src/share/* $out/share/MakeMKV

View file

@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/" export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/"
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp omxplayer.bin $out/bin cp omxplayer.bin $out/bin
''; '';
buildInputs = [ raspberrypifw ffmpeg pcre boostHeaders freetype zlib ]; buildInputs = [ raspberrypifw ffmpeg pcre boostHeaders freetype zlib ];

View file

@ -250,12 +250,12 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
./Setup copy ./Setup copy
ensureDir $out/bin # necessary to get it added to PATH mkdir -p $out/bin # necessary to get it added to PATH
local confDir=$out/lib/ghc-${ghc.ghc.version}/package.conf.d local confDir=$out/lib/ghc-${ghc.ghc.version}/package.conf.d
local installedPkgConf=$confDir/${self.fname}.installedconf local installedPkgConf=$confDir/${self.fname}.installedconf
local pkgConf=$confDir/${self.fname}.conf local pkgConf=$confDir/${self.fname}.conf
ensureDir $confDir mkdir -p $confDir
./Setup register --gen-pkg-config=$pkgConf ./Setup register --gen-pkg-config=$pkgConf
if test -f $pkgConf; then if test -f $pkgConf; then
echo '[]' > $installedPkgConf echo '[]' > $installedPkgConf

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation {
inherit libs; inherit libs;
buildCommand = '' buildCommand = ''
ensureDir $out/bin mkdir -p $out/bin
KDEDIRS=${program} KDEDIRS=${program}
QT_PLUGIN_PATH=${program}/lib/qt4/plugins:${program}/lib/kde4/plugins QT_PLUGIN_PATH=${program}/lib/qt4/plugins:${program}/lib/kde4/plugins

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation {
priority = 5; priority = 5;
buildCommand = '' buildCommand = ''
ensureDir $out/share/autostart mkdir -p $out/share/autostart
target=${name}.desktop target=${name}.desktop
cp ${package}/share/applications/${srcPrefix}${name}.desktop $target cp ${package}/share/applications/${srcPrefix}${name}.desktop $target
chmod +rw $target chmod +rw $target

View file

@ -9,6 +9,6 @@ findTarballs() {
} }
propagateImageName() { propagateImageName() {
ensureDir $out/nix-support mkdir -p $out/nix-support
cat "$diskImage"/nix-support/full-name > $out/nix-support/full-name cat "$diskImage"/nix-support/full-name > $out/nix-support/full-name
} }

View file

@ -69,7 +69,7 @@ in rec {
-b "${installedVM}/disk.img" \ -b "${installedVM}/disk.img" \
-f qcow2 winvm.img -f qcow2 winvm.img
${runAndSuspend} ${runAndSuspend}
ensureDir "$out" mkdir -p "$out"
cp winvm.img "$out/disk.img" cp winvm.img "$out/disk.img"
cp state.gz "$out/state.gz" cp state.gz "$out/state.gz"
''; '';

View file

@ -22,7 +22,7 @@ let
cygwinSshKey = stdenv.mkDerivation { cygwinSshKey = stdenv.mkDerivation {
name = "snakeoil-ssh-cygwin"; name = "snakeoil-ssh-cygwin";
buildCommand = '' buildCommand = ''
ensureDir "$out" mkdir -p "$out"
${openssh}/bin/ssh-keygen -t ecdsa -f "$out/key" -N "" ${openssh}/bin/ssh-keygen -t ecdsa -f "$out/key" -N ""
''; '';
}; };
@ -65,7 +65,7 @@ in stdenv.mkDerivation {
buildCommand = '' buildCommand = ''
${qemu}/bin/qemu-img create -f qcow2 winvm.img 2G ${qemu}/bin/qemu-img create -f qcow2 winvm.img 2G
${installController} ${installController}
ensureDir "$out" mkdir -p "$out"
cp winvm.img "$out/disk.img" cp winvm.img "$out/disk.img"
''; '';
passthru = { passthru = {

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
ln -s . $out/share/zoneinfo/posix ln -s . $out/share/zoneinfo/posix
mv $out/share/zoneinfo-leaps $out/share/zoneinfo/right mv $out/share/zoneinfo-leaps $out/share/zoneinfo/right
ensureDir "$lib/include" mkdir -p "$lib/include"
cp tzfile.h "$lib/include/tzfile.h" cp tzfile.h "$lib/include/tzfile.h"
''; '';

View file

@ -34,14 +34,14 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp ghdl_mcode $out/bin cp ghdl_mcode $out/bin
ensureDir $out/share/ghdl_mcode/translate mkdir -p $out/share/ghdl_mcode/translate
cp -R ../lib $out/share/ghdl_mcode/translate cp -R ../lib $out/share/ghdl_mcode/translate
cp -R ../../libraries $out/share/ghdl_mcode cp -R ../../libraries $out/share/ghdl_mcode
ensureDir $out/share/man/man1 mkdir -p $out/share/man/man1
cp ../../doc/ghdl.1 $out/share/man/man1/ghdl_mcode.1 cp ../../doc/ghdl.1 $out/share/man/man1/ghdl_mcode.1
# Ghdl has some timestamps checks, storing file timestamps in '.cf' files. # Ghdl has some timestamps checks, storing file timestamps in '.cf' files.

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [ unzip ]; buildInputs = [ unzip ];
installPhase = '' installPhase = ''
ensureDir $out mkdir -p $out
unzip $src unzip $src
mv gwt-2.4.0 $out/bin mv gwt-2.4.0 $out/bin
''; '';

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
''; '';
preConfigure = '' preConfigure = ''
ensureDir $out/lib/mercury/cgi-bin ; mkdir -p $out/lib/mercury/cgi-bin ;
configureFlags="--enable-deep-profiler=$out/lib/mercury/cgi-bin"; configureFlags="--enable-deep-profiler=$out/lib/mercury/cgi-bin";
''; '';

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
patch -p0 < ${./mips64.patch} patch -p0 < ${./mips64.patch}
''; '';
postBuild = '' postBuild = ''
ensureDir $out/include mkdir -p $out/include
ln -sv $out/lib/ocaml/caml $out/include/caml ln -sv $out/lib/ocaml/caml $out/include/caml
''; '';

View file

@ -54,13 +54,13 @@ stdenv.mkDerivation rec {
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
# Set up link to cymake, which has been built already. # Set up link to cymake, which has been built already.
ensureDir bin/.local mkdir -p bin/.local
ln -s ${curryFront}/bin/cymake bin/.local/ ln -s ${curryFront}/bin/cymake bin/.local/
''; '';
installPhase = '' installPhase = ''
# Prepare PAKCSHOME directory. # Prepare PAKCSHOME directory.
ensureDir $out/pakcs mkdir -p $out/pakcs
for d in bin curry2prolog currytools lib tools cpns include www examples docs ; do for d in bin curry2prolog currytools lib tools cpns include www examples docs ; do
cp -r $d $out/pakcs ; cp -r $d $out/pakcs ;
done done
@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
(cd $out/pakcs/www ; make) (cd $out/pakcs/www ; make)
# Install bin. # Install bin.
ensureDir $out/bin mkdir -p $out/bin
for b in makecurrycgi .makesavedstate pakcs parsecurry cleancurry \ for b in makecurrycgi .makesavedstate pakcs parsecurry cleancurry \
addtypes cass currybrowse currycreatemake currydoc currytest \ addtypes cass currybrowse currycreatemake currydoc currytest \
dataToXml erd2curry ; do dataToXml erd2curry ; do
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
done done
# Place emacs lisp files in expected locations. # Place emacs lisp files in expected locations.
ensureDir $out/share/emacs/site-lisp/curry-pakcs mkdir -p $out/share/emacs/site-lisp/curry-pakcs
for e in "tools/emacs/"*.el ; do for e in "tools/emacs/"*.el ; do
cp $e $out/share/emacs/site-lisp/curry-pakcs/ ; cp $e $out/share/emacs/site-lisp/curry-pakcs/ ;
done done

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation {
buildInputs = [openssl jdk premake3]; buildInputs = [openssl jdk premake3];
installPhase = '' installPhase = ''
ensureDir $out/{bin,lib,share/${baseName}} mkdir -p $out/{bin,lib,share/${baseName}}
# Install lib # Install lib
install -Dm444 lib/linux/libaacskeys.so $out/lib install -Dm444 lib/linux/libaacskeys.so $out/lib

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
phases = [ "unpackPhase" "installPhase" ]; phases = [ "unpackPhase" "installPhase" ];
installPhase = '' installPhase = ''
ensureDir $out mkdir -p $out
mv * $out/ mv * $out/
for j in `find $out/lib -name "*.jar"`; do for j in `find $out/lib -name "*.jar"`; do
cp="''${cp:+"$cp:"}$j"; cp="''${cp:+"$cp:"}$j";

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
dontBuild = true; dontBuild = true;
installPhase = '' installPhase = ''
ensureDir "$out/lib/${passthru.libPrefix}" mkdir -p "$out/lib/${passthru.libPrefix}"
cp -R *.tcl lang images "$out/lib/${passthru.libPrefix}" cp -R *.tcl lang images "$out/lib/${passthru.libPrefix}"
''; '';

View file

@ -6,7 +6,7 @@ cabal.mkDerivation (self: {
sha256 = "1qi7f3phj2j63x1wd2cvk36945cxd84s12zs03hlrn49wzx2pf1n"; sha256 = "1qi7f3phj2j63x1wd2cvk36945cxd84s12zs03hlrn49wzx2pf1n";
buildDepends = [ binary transformers ]; buildDepends = [ binary transformers ];
postInstall = '' postInstall = ''
ensureDir "$out/share/ghci" mkdir -p "$out/share/ghci"
ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname" ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname"
''; '';
meta = { meta = {

View file

@ -24,7 +24,7 @@ cabal.mkDerivation (self: {
make make
rm Makefile rm Makefile
cd .. cd ..
ensureDir "$out/share/emacs" mkdir -p "$out/share/emacs"
mv $pname-$version emacs/site-lisp mv $pname-$version emacs/site-lisp
mv $out/bin/ghc-mod $out/bin/.ghc-mod-wrapped mv $out/bin/ghc-mod $out/bin/.ghc-mod-wrapped

View file

@ -12,7 +12,7 @@ cabal.mkDerivation (self: {
]; ];
jailbreak = true; jailbreak = true;
postInstall = '' postInstall = ''
ensureDir "$out/share/ghci" mkdir -p "$out/share/ghci"
ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname" ln -s "$out/share/$pname-$version/ghci" "$out/share/ghci/$pname"
''; '';
meta = { meta = {

View file

@ -65,7 +65,7 @@ cabal.mkDerivation (self: rec {
exit 1 exit 1
fi fi
ensureDir $out/share/hoogle/doc mkdir -p $out/share/hoogle/doc
export HOOGLE_DOC_PATH=$out/share/hoogle/doc export HOOGLE_DOC_PATH=$out/share/hoogle/doc
cd $out/share/hoogle cd $out/share/hoogle

View file

@ -178,7 +178,7 @@ stdenv.mkDerivation rec {
# Create wrappers to the most important tools and platform tools so that we can run them if the SDK is in our PATH # Create wrappers to the most important tools and platform tools so that we can run them if the SDK is in our PATH
ensureDir $out/bin mkdir -p $out/bin
for i in $out/libexec/android-sdk-*/tools/* for i in $out/libexec/android-sdk-*/tools/*
do do

View file

@ -10,7 +10,7 @@ in
stdenv.mkDerivation { stdenv.mkDerivation {
name = stdenv.lib.replaceChars [" "] [""] name; name = stdenv.lib.replaceChars [" "] [""] name;
buildCommand = '' buildCommand = ''
ensureDir $out/bin mkdir -p $out/bin
cat > $out/bin/run-test-simulator << "EOF" cat > $out/bin/run-test-simulator << "EOF"
#! ${stdenv.shell} -e #! ${stdenv.shell} -e

View file

@ -3,7 +3,7 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "xcode-wrapper-"+version; name = "xcode-wrapper-"+version;
buildCommand = '' buildCommand = ''
ensureDir $out/bin mkdir -p $out/bin
cd $out/bin cd $out/bin
ln -s /usr/bin/xcode-select ln -s /usr/bin/xcode-select
ln -s /usr/bin/xcodebuild ln -s /usr/bin/xcodebuild

View file

@ -14,7 +14,7 @@ in stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
ensureDir "$out/include/" mkdir -p "$out/include/"
cp OCamlMakefile "$out/include/" cp OCamlMakefile "$out/include/"
''; '';

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
install -D apktool.jar "$out/libexec/apktool/apktool.jar" install -D apktool.jar "$out/libexec/apktool/apktool.jar"
ensureDir "$out/bin" mkdir -p "$out/bin"
makeWrapper "${jre}/bin/java" "$out/bin/apktool" \ makeWrapper "${jre}/bin/java" "$out/bin/apktool" \
--add-flags "-jar $out/libexec/apktool/apktool.jar" \ --add-flags "-jar $out/libexec/apktool/apktool.jar" \
--prefix PATH : "${buildTools}/build-tools/android-4.3/" --prefix PATH : "${buildTools}/build-tools/android-4.3/"

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "10hdd6mrk26kyh4bnng4ah5h1pnanhsrhqa7qwqy6dyv3rng44y9"; sha256 = "10hdd6mrk26kyh4bnng4ah5h1pnanhsrhqa7qwqy6dyv3rng44y9";
}; };
preBuild = '' preBuild = ''
ensureDir $out/lib/noweb mkdir -p $out/lib/noweb
cd src cd src
makeFlags="BIN=$out/bin LIB=$out/lib/noweb MAN=$out/share/man TEXINPUTS=$out/share/texmf/tex/latex" makeFlags="BIN=$out/bin LIB=$out/lib/noweb MAN=$out/share/man TEXINPUTS=$out/share/texmf/tex/latex"
''; '';

View file

@ -5,7 +5,7 @@ stdenv.mkDerivation {
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
bin=${gccRaw}/bin bin=${gccRaw}/bin

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
phases = ["unpackPhase" "installPhase"]; phases = ["unpackPhase" "installPhase"];
installPhase = '' installPhase = ''
ensureDir $out && cp -R * $out mkdir -p $out && cp -R * $out
${optionalString (conf!=null) ''cp ${conf} $out/config.js''} ${optionalString (conf!=null) ''cp ${conf} $out/config.js''}
''; '';

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
ensureDir $out mkdir -p $out
cp -a * $out/ cp -a * $out/
substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname
wrapProgram $out/bin/OpenGrok \ wrapProgram $out/bin/OpenGrok \

View file

@ -33,8 +33,8 @@ in stdenv.mkDerivation rec {
installPhase = let installPhase = let
LD_LIBRARY_PATH = "${nwEnv}/lib:${nwEnv}/lib64:$out/share/node-webkit"; LD_LIBRARY_PATH = "${nwEnv}/lib:${nwEnv}/lib64:$out/share/node-webkit";
in '' in ''
ensureDir $out/bin mkdir -p $out/bin
ensureDir $out/share/node-webkit mkdir -p $out/share/node-webkit
cp -R * $out/share/node-webkit cp -R * $out/share/node-webkit
ln -s ${udev}/lib/libudev.so $out/share/node-webkit/libudev.so.0 ln -s ${udev}/lib/libudev.so $out/share/node-webkit/libudev.so.0

View file

@ -52,7 +52,7 @@ versionedDerivation "ocaml-deriving" version {
# not all tests compile !? # not all tests compile !?
# (cd tests; make) # (cd tests; make)
ensureDir $out/bin mkdir -p $out/bin
cp -a lib $out/ cp -a lib $out/
cp -a syntax $out cp -a syntax $out

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
}; };
buildCommand = '' buildCommand = ''
ensureDir $out/lib mkdir -p $out/lib
ln -s $src $out/lib/yuicompressor.jar ln -s $src $out/lib/yuicompressor.jar
''; '';
} }

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
installPhase = '' installPhase = ''
ensureDir $out/{opt/andyetitmoves,bin} mkdir -p $out/{opt/andyetitmoves,bin}
cp -r * $out/opt/andyetitmoves/ cp -r * $out/opt/andyetitmoves/
fullPath=${stdenv.gcc.gcc}/lib64 fullPath=${stdenv.gcc.gcc}/lib64

View file

@ -621,10 +621,10 @@ stdenv.mkDerivation rec {
else "make"; else "make";
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp -p ./crafty $out/bin cp -p ./crafty $out/bin
ensureDir $out/share/crafty mkdir -p $out/share/crafty
cd $out/share/crafty cd $out/share/crafty
$out/bin/crafty "books create ${startPgn} 60" $out/bin/crafty "books create ${startPgn} 60"
@ -635,7 +635,7 @@ stdenv.mkDerivation rec {
$out/bin/crafty "book create enormous.pgn 60" $out/bin/crafty "book create enormous.pgn 60"
rm -f *.001 enormous.pgn rm -f *.001 enormous.pgn
ensureDir $out/share/crafty/TB mkdir -p $out/share/crafty/TB
${stdenv.lib.fold ${stdenv.lib.fold
(tb: acc: acc + "\nln -s " (tb: acc: acc + "\nln -s "
+ toString tb + toString tb

View file

@ -32,8 +32,8 @@ stdenv.mkDerivation rec {
+ ":" + stdenv.gcc.gcc + "/lib64"; + ":" + stdenv.gcc.gcc + "/lib64";
installPhase = '' installPhase = ''
ensureDir $out/libexec/positech/GSB/ mkdir -p $out/libexec/positech/GSB/
ensureDir $out/bin mkdir -p $out/bin
patchelf \ patchelf \
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin $out/share/OpenLieroX mkdir -p $out/bin $out/share/OpenLieroX
cp bin/* $out/bin cp bin/* $out/bin
cp -R ../share/gamedir/* $out/share/OpenLieroX cp -R ../share/gamedir/* $out/share/OpenLieroX
''; '';

View file

@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
"; ";
buildPhase = "make release"; buildPhase = "make release";
installPhase = " installPhase = "
ensureDir $out/bin mkdir -p $out/bin
cp ./opentyrian $out/bin cp ./opentyrian $out/bin
ensureDir $out/share/opentyrian/data mkdir -p $out/share/opentyrian/data
unzip -j $data -d $out/share/opentyrian/data unzip -j $data -d $out/share/opentyrian/data
"; ";

View file

@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
+ ":" + stdenv.lib.makeLibraryPath [ SDL pulseaudio alsaLib ] ; + ":" + stdenv.lib.makeLibraryPath [ SDL pulseaudio alsaLib ] ;
installPhase = '' installPhase = ''
ensureDir $out/libexec/strangeloop/vessel/ mkdir -p $out/libexec/strangeloop/vessel/
ensureDir $out/bin mkdir -p $out/bin
# allow scripting of the mojoinstaller # allow scripting of the mojoinstaller
gcc -fPIC -shared -o isatty.so $ld_preload gcc -fPIC -shared -o isatty.so $ld_preload

View file

@ -50,8 +50,8 @@ stdenv.mkDerivation rec {
+ ":" + stdenv.gcc.gcc + "/lib64"; + ":" + stdenv.gcc.gcc + "/lib64";
installPhase = '' installPhase = ''
ensureDir $out/libexec/2dboy/WorldOfGoo/ mkdir -p $out/libexec/2dboy/WorldOfGoo/
ensureDir $out/bin mkdir -p $out/bin
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath $libPath ./WorldOfGoo.bin64 patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath $libPath ./WorldOfGoo.bin64

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
installPhase = '' installPhase = ''
ensureDir $out/bin mkdir -p $out/bin
cp bsod $out/bin cp bsod $out/bin
''; '';

View file

@ -89,7 +89,7 @@ let vimHelpTags = ''
installPhase = '' installPhase = ''
target=$out/vim-plugins/$path target=$out/vim-plugins/$path
ensureDir $out/vim-plugins mkdir -p $out/vim-plugins
cp -r . $target cp -r . $target
${vimHelpTags} ${vimHelpTags}
vimHelpTags $target vimHelpTags $target

View file

@ -31,12 +31,12 @@ in stdenv.mkDerivation rec {
patches = optional (osxVersion == "10.9") ./gcc-fix-enum-attributes.patch; patches = optional (osxVersion == "10.9") ./gcc-fix-enum-attributes.patch;
installPhase = '' installPhase = ''
ensureDir "$out/share/sysroot" mkdir -p "$out/share/sysroot"
cp -a * "$out/share/sysroot/" cp -a * "$out/share/sysroot/"
ln -s "$out/share/sysroot/usr/lib" "$out/lib" ln -s "$out/share/sysroot/usr/lib" "$out/lib"
ln -s "$out/share/sysroot/usr/include" "$out/include" ln -s "$out/share/sysroot/usr/include" "$out/include"
ensureDir "$toolchain" mkdir -p "$toolchain"
pushd "$toolchain" pushd "$toolchain"
${xpwn}/bin/hfsplus "$(dirs +1)/../main.hfs" extractall \ ${xpwn}/bin/hfsplus "$(dirs +1)/../main.hfs" extractall \
Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr \ Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr \

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
make make
make check make check
make install make install
ensureDir $out/lib/perl5/site_perl/ mkdir -p $out/lib/perl5/site_perl/
cp swig/perl/LibAppArmor.pm $out/lib/perl5/site_perl/ cp swig/perl/LibAppArmor.pm $out/lib/perl5/site_perl/
cp swig/perl/LibAppArmor.bs $out/lib/perl5/site_perl/ cp swig/perl/LibAppArmor.bs $out/lib/perl5/site_perl/
# this is automatically copied elsewhere.... # this is automatically copied elsewhere....

View file

@ -22,10 +22,10 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/lib/modules/${kernel.modDirVersion}/misc mkdir -p $out/lib/modules/${kernel.modDirVersion}/misc
cp bbswitch.ko $out/lib/modules/${kernel.modDirVersion}/misc cp bbswitch.ko $out/lib/modules/${kernel.modDirVersion}/misc
ensureDir $out/bin mkdir -p $out/bin
tee $out/bin/discrete_vga_poweroff << EOF tee $out/bin/discrete_vga_poweroff << EOF
#!/bin/sh #!/bin/sh

View file

@ -20,10 +20,10 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
kernelVersion=${kernel.modDirVersion} kernelVersion=${kernel.modDirVersion}
ensureDir $out/lib/modules/$kernelVersion/misc mkdir -p $out/lib/modules/$kernelVersion/misc
cp frandom.ko $out/lib/modules/$kernelVersion/misc cp frandom.ko $out/lib/modules/$kernelVersion/misc
ensureDir $out/lib/udev/rules.d mkdir -p $out/lib/udev/rules.d
tee $out/lib/udev/rules.d/10-frandom.rules <<-EOF tee $out/lib/udev/rules.d/10-frandom.rules <<-EOF
# #
# These are the rules for the frandom devices. In theory, we could let # These are the rules for the frandom devices. In theory, we could let

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = [openssl]; buildInputs = [openssl];
preFixup = '' preFixup = ''
ensureDir $out/share/${name} mkdir -p $out/share/${name}
chmod 444 $out/bin/gogoc.conf chmod 444 $out/bin/gogoc.conf
mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample
rm $out/bin/gogoc.conf.sample rm $out/bin/gogoc.conf.sample

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/bin $out/lib/security mkdir -p $out/bin $out/lib/security
cp pam_google_authenticator.so $out/lib/security cp pam_google_authenticator.so $out/lib/security
cp google-authenticator $out/bin cp google-authenticator $out/bin
''; '';

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
ensureDir $out/sbin mkdir -p $out/sbin
make install prefix=$out make install prefix=$out
install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui
''; '';

View file

@ -26,7 +26,7 @@ in stdenv.mkDerivation {
makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc"; makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
preInstall = '' preInstall = ''
ensureDir $out/share/doc mkdir -p $out/share/doc
''; '';
meta = { meta = {

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation {
''; '';
installPhase = '' installPhase = ''
ensureDir "$out/bin" mkdir -p "$out/bin"
cp intel-microcode2ucode "$out/bin/" cp intel-microcode2ucode "$out/bin/"
''; '';

View file

@ -22,8 +22,8 @@ stdenv.mkDerivation {
''; '';
preInstall = '' preInstall = ''
ensureDir $out/bin $out/sbin $out/share/man/man{4,8} mkdir -p $out/bin $out/sbin $out/share/man/man{4,8}
ensureDir $out/lib/modules/${kernel.modDirVersion}/extra mkdir -p $out/lib/modules/${kernel.modDirVersion}/extra
''; '';
meta = { meta = {

Some files were not shown because too many files have changed in this diff Show more