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.
dst=$out/share/doc/nixos
ensureDir $dst
mkdir -p $dst
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/manual.html \
${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
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}"
if test -z "$compressImage"; then
$genCommand -o $out/iso/$isoName
@ -87,5 +87,5 @@ else
fi
ensureDir $out/nix-support
mkdir -p $out/nix-support
echo $system > $out/nix-support/system

View file

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

View file

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

View file

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

View file

@ -12,7 +12,7 @@ let
nagiosObjectDefs = cfg.objectDefs;
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"
''

View file

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

View file

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

View file

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

View file

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

View file

@ -80,7 +80,7 @@ let
# !!! should be in lib
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;
@ -194,7 +194,7 @@ let
) null ([ cfg ] ++ subservices);
documentRoot = if maybeDocumentRoot != null then maybeDocumentRoot else
pkgs.runCommand "empty" {} "ensureDir $out";
pkgs.runCommand "empty" {} "mkdir -p $out";
documentRootConf = ''
DocumentRoot "${documentRoot}"

View file

@ -90,7 +90,7 @@ let
installPhase =
''
ensureDir $out
mkdir -p $out
cp -r * $out
cp ${mediawikiConfig} $out/LocalSettings.php
sed -i 's|/bin/bash|${pkgs.stdenv.shell}|' \
@ -103,7 +103,7 @@ let
mediawikiScripts = pkgs.runCommand "mediawiki-${config.id}-scripts"
{ 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
makeWrapper ${php}/bin/php $out/bin/mediawiki-${config.id}-$(basename $i .php) \
--add-flags ${mediawikiRoot}/maintenance/$i

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -379,7 +379,7 @@ in
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 ${pkgs.writeScript "run-nixos-vm" startVM} $out/bin/run-${vmName}-vm
'';

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -16,10 +16,10 @@ stdenv.mkDerivation rec {
installPhase =
''
ensureDir "$out/share/doc/${name}"
mkdir -p "$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/"
'';

View file

@ -18,7 +18,7 @@ in stdenv.mkDerivation {
installPhase = ''
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
'';

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -70,9 +70,9 @@ in stdenv.mkDerivation {
'';
installPhase = ''
ensureDir "$out/${appdir}"
mkdir -p "$out/${appdir}"
cp -r ".dropbox-dist/"* "$out/${appdir}/"
ensureDir "$out/bin"
mkdir -p "$out/bin"
ln -s "$out/${appdir}/dropbox" "$out/bin/dropbox"
patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \
@ -83,7 +83,7 @@ in stdenv.mkDerivation {
find "$out/${appdir}" -type f -a -perm +0100 \
-print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \;
ensureDir "$out/share/applications"
mkdir -p "$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";
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/22/skypeout.png $out/pixmaps/pidgin/protocols/22
cp icons/48/skypeout.png $out/pixmaps/pidgin/protocols/48

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
ensureDir $out/lib/irssi/modules
mkdir -p $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";
installPhase = ''
ensureDir $out/share/freenet $out/bin
mkdir -p $out/share/freenet $out/bin
cp lib/bcprov.jar $out/share/freenet
cp lib/freenet/freenet-ext.jar $out/share/freenet
cp dist/freenet.jar $out/share/freenet

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,9 +30,9 @@ for i in ${bin} ; do
${i}
done
ensureDir $out/bin
ensureDir $out/lib
ensureDir $out/share/MakeMKV
mkdir -p $out/bin
mkdir -p $out/lib
mkdir -p $out/share/MakeMKV
cp ${lib} ${out}/lib
cp ${bin} ${out}/bin
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/"
'';
installPhase = ''
ensureDir $out/bin
mkdir -p $out/bin
cp omxplayer.bin $out/bin
'';
buildInputs = [ raspberrypifw ffmpeg pcre boostHeaders freetype zlib ];

View file

@ -250,12 +250,12 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
./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 installedPkgConf=$confDir/${self.fname}.installedconf
local pkgConf=$confDir/${self.fname}.conf
ensureDir $confDir
mkdir -p $confDir
./Setup register --gen-pkg-config=$pkgConf
if test -f $pkgConf; then
echo '[]' > $installedPkgConf

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -34,14 +34,14 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
ensureDir $out/bin
mkdir -p $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 ../../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
# Ghdl has some timestamps checks, storing file timestamps in '.cf' files.

View file

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

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
'';
preConfigure = ''
ensureDir $out/lib/mercury/cgi-bin ;
mkdir -p $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}
'';
postBuild = ''
ensureDir $out/include
mkdir -p $out/include
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
# Set up link to cymake, which has been built already.
ensureDir bin/.local
mkdir -p bin/.local
ln -s ${curryFront}/bin/cymake bin/.local/
'';
installPhase = ''
# Prepare PAKCSHOME directory.
ensureDir $out/pakcs
mkdir -p $out/pakcs
for d in bin curry2prolog currytools lib tools cpns include www examples docs ; do
cp -r $d $out/pakcs ;
done
@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
(cd $out/pakcs/www ; make)
# Install bin.
ensureDir $out/bin
mkdir -p $out/bin
for b in makecurrycgi .makesavedstate pakcs parsecurry cleancurry \
addtypes cass currybrowse currycreatemake currydoc currytest \
dataToXml erd2curry ; do
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
done
# 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
cp $e $out/share/emacs/site-lisp/curry-pakcs/ ;
done

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -65,7 +65,7 @@ cabal.mkDerivation (self: rec {
exit 1
fi
ensureDir $out/share/hoogle/doc
mkdir -p $out/share/hoogle/doc
export HOOGLE_DOC_PATH=$out/share/hoogle/doc
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
ensureDir $out/bin
mkdir -p $out/bin
for i in $out/libexec/android-sdk-*/tools/*
do

View file

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

View file

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

View file

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

View file

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

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "10hdd6mrk26kyh4bnng4ah5h1pnanhsrhqa7qwqy6dyv3rng44y9";
};
preBuild = ''
ensureDir $out/lib/noweb
mkdir -p $out/lib/noweb
cd src
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" ];
installPhase = ''
ensureDir $out/bin
mkdir -p $out/bin
bin=${gccRaw}/bin

View file

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

View file

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

View file

@ -33,8 +33,8 @@ in stdenv.mkDerivation rec {
installPhase = let
LD_LIBRARY_PATH = "${nwEnv}/lib:${nwEnv}/lib64:$out/share/node-webkit";
in ''
ensureDir $out/bin
ensureDir $out/share/node-webkit
mkdir -p $out/bin
mkdir -p $out/share/node-webkit
cp -R * $out/share/node-webkit
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 !?
# (cd tests; make)
ensureDir $out/bin
mkdir -p $out/bin
cp -a lib $out/
cp -a syntax $out

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
";
buildPhase = "make release";
installPhase = "
ensureDir $out/bin
mkdir -p $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
";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
make
make check
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.bs $out/lib/perl5/site_perl/
# this is automatically copied elsewhere....

View file

@ -22,10 +22,10 @@ stdenv.mkDerivation {
'';
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
ensureDir $out/bin
mkdir -p $out/bin
tee $out/bin/discrete_vga_poweroff << EOF
#!/bin/sh

View file

@ -20,10 +20,10 @@ stdenv.mkDerivation rec {
installPhase = ''
kernelVersion=${kernel.modDirVersion}
ensureDir $out/lib/modules/$kernelVersion/misc
mkdir -p $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
#
# These are the rules for the frandom devices. In theory, we could let

View file

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

View file

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

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
ensureDir $out/sbin
mkdir -p $out/sbin
make install prefix=$out
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";
preInstall = ''
ensureDir $out/share/doc
mkdir -p $out/share/doc
'';
meta = {

View file

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

View file

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

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