mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
* "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
This commit is contained in:
parent
f7159c195a
commit
c556a6ea46
@ -70,7 +70,7 @@ stdenv.mkDerivation {
|
||||
gcc foo.c -o foo
|
||||
'';
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp foo $out/bin
|
||||
'';
|
||||
}</programlisting>
|
||||
@ -112,7 +112,7 @@ buildPhase() {
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp foo $out/bin
|
||||
}
|
||||
|
||||
@ -939,14 +939,6 @@ functions.</para>
|
||||
<variablelist>
|
||||
|
||||
|
||||
<varlistentry xml:id='fun-ensureDir'>
|
||||
<term><function>ensureDir</function> <replaceable>args</replaceable></term>
|
||||
<listitem><para>Creates the specified directories, including all
|
||||
necessary parent directories, if they do not already
|
||||
exist.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry xml:id='fun-substitute'>
|
||||
<term><function>substitute</function>
|
||||
<replaceable>infile</replaceable>
|
||||
|
@ -233,9 +233,9 @@ preConfigure() {
|
||||
fi
|
||||
|
||||
# Cross compiler evilness
|
||||
ensureDir $out
|
||||
ensureDir $out/arm-linux
|
||||
ensureDir $out/arm-linux/bin
|
||||
mkdir -p $out
|
||||
mkdir -p $out/arm-linux
|
||||
mkdir -p $out/arm-linux/bin
|
||||
ln -s $binutilsArm/arm-linux/bin/as $out/arm-linux/bin/as
|
||||
ln -s $binutilsArm/arm-linux/bin/ld $out/arm-linux/bin/ld
|
||||
ln -s $binutilsArm/arm-linux/bin/ar $out/arm-linux/bin/ar
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
export CXX=g++
|
||||
scons PREFIX=$out install
|
||||
'';
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
postInstall = ''
|
||||
cp ${keymap}.keymap $out/share/gmu/default.keymap
|
||||
cp gmuinput.${conf}.conf $out/share/gmu/gmuinput.conf
|
||||
ensureDir $out/etc/gmu
|
||||
mkdir -p $out/etc/gmu
|
||||
cp gmu.${conf}.conf $out/etc/gmu/gmu.conf
|
||||
'';
|
||||
|
||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
ensureDir $out/bin $out/man/man1
|
||||
mkdir -p $out/bin $out/man/man1
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
||||
|
||||
postInstall =
|
||||
''
|
||||
ensureDir $out/share/ladspa/
|
||||
mkdir -p $out/share/ladspa/
|
||||
ln -sv $out/lib/ladspa $out/share/ladspa/lib
|
||||
'';
|
||||
|
||||
|
@ -13,7 +13,7 @@ in
|
||||
in with localDefs;
|
||||
let
|
||||
copyFile = fullDepEntry ("
|
||||
ensureDir \$out/include
|
||||
mkdir -p \$out/include
|
||||
cp ${src} \$out/include/ladspa.h
|
||||
") [minInit defEnsureDir];
|
||||
in
|
||||
|
@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preInstall =
|
||||
'' ensureDir "$out/bin"
|
||||
ensureDir "$out/man/man1"
|
||||
'' mkdir -p "$out/bin"
|
||||
mkdir -p "$out/man/man1"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase =
|
||||
# XXX: Should install locales too (though there's only 1 available).
|
||||
'' ensureDir "$out/bin"
|
||||
'' mkdir -p "$out/bin"
|
||||
cp -v mpc123 "$out/bin"
|
||||
'';
|
||||
|
||||
|
@ -40,7 +40,7 @@ rec {
|
||||
|
||||
makeDocsWork = fullDepEntry ''
|
||||
# hackish way to make html docs work
|
||||
h="$out/share/snd/html"; ensureDir "$h"; cp *.html "$h"
|
||||
h="$out/share/snd/html"; mkdir -p "$h"; cp *.html "$h"
|
||||
patch -p1 < ${./doc.patch}
|
||||
sed "s@HTML-DIR@$h@" -i index.scm snd-help.c
|
||||
'' ["defEnsureDir"];
|
||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,share/sonic-visualiser}
|
||||
mkdir -p $out/{bin,share/sonic-visualiser}
|
||||
cp sonic-visualiser/sonic-visualiser $out/bin
|
||||
cp -r sonic-visualiser/samples $out/share/sonic-visualiser/samples
|
||||
wrapProgram $out/bin/sonic-visualiser --prefix LD_LIBRARY_PATH : ${libX11}/lib
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ alsaLib libX11 makeWrapper tcl tk ];
|
||||
|
||||
configurePhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
sed -e "s@/usr/local@$out@" -i Makefile
|
||||
'';
|
||||
|
||||
|
@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
|
||||
ladspaPlugins liblo pkgconfig ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
ensureDir $out/lib
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/lib
|
||||
cp src/Xsynth_gtk $out/bin
|
||||
cp src/.libs/* $out/lib
|
||||
'';
|
||||
|
@ -27,7 +27,7 @@ let
|
||||
|
||||
buildCommand = ''
|
||||
# Unpack tarball.
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
tar xfvz $src -C $out
|
||||
|
||||
# Patch binaries.
|
||||
@ -47,7 +47,7 @@ let
|
||||
--add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration"
|
||||
|
||||
# Create desktop item.
|
||||
ensureDir $out/share/applications
|
||||
mkdir -p $out/share/applications
|
||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
||||
''; # */
|
||||
|
||||
|
@ -15,16 +15,16 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
ensureDir $out/share/man/man1
|
||||
mkdir -p $out/share/man/man1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/share/elvis $out/share/elvis/doc
|
||||
mkdir -p $out/bin $out/share/elvis $out/share/elvis/doc
|
||||
cp elvis ref elvtags elvfmt $out/bin
|
||||
cp -R data/* $out/share/elvis
|
||||
cp doc/* $out/share/elvis/doc
|
||||
|
||||
ensureDir $out/share/man/man1
|
||||
mkdir -p $out/share/man/man1
|
||||
for a in doc/*.man; do
|
||||
cp $a $out/share/man/man1/`basename $a .man`.1
|
||||
done
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [emacs texinfo ctags];
|
||||
configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
|
||||
preInstall = "ensureDir $out/info";
|
||||
preInstall = "mkdir -p $out/info";
|
||||
installTargets = "install-pkg texinfo";
|
||||
postInstall = ''
|
||||
mv $out/info $out/share/
|
||||
|
@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
|
||||
checkPhase = "make utest";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/share/emacs/site-lisp"
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp -v */*.el */*/*.el */*.elc */*/*.elc "$out/share/emacs/site-lisp"
|
||||
chmod a-x "$out/share/emacs/site-lisp/"*
|
||||
|
||||
ensureDir "$out/share/info"
|
||||
mkdir -p "$out/share/info"
|
||||
cp -v */*.info* */*/*.info* "$out/share/info"
|
||||
'';
|
||||
|
||||
|
@ -21,10 +21,10 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/share/emacs/site-lisp"
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp -rv *.el *.elc ecb-images "$out/share/emacs/site-lisp"
|
||||
|
||||
ensureDir "$out/share/info"
|
||||
mkdir -p "$out/share/info"
|
||||
cp -v info-help/*.info* "$out/share/info"
|
||||
'';
|
||||
|
||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
s|/usr/include/taglib|${taglib}/include/taglib|g ;
|
||||
s|/usr/lib|${taglib}/lib|g ;
|
||||
s|^all:\(.*\)\$|all:\1 emms-print-metadata|g"
|
||||
ensureDir "$out/share/man/man1"
|
||||
mkdir -p "$out/share/man/man1"
|
||||
|
||||
sed -i "emms-player-mpg321-remote.el" \
|
||||
-e 's|emms-player-mpg321-remote-command[[:blank:]]\+"mpg321"|emms-player-mpg321-remote-command "${mpg321}/bin/mpg321"|g'
|
||||
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ensureDir "$out/bin" && cp emms-print-metadata "$out/bin"
|
||||
mkdir -p "$out/bin" && cp emms-print-metadata "$out/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [emacs];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/share/emacs/site-lisp"
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp *.el *.elc *.hs "$out/share/emacs/site-lisp/"
|
||||
'';
|
||||
|
||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation {
|
||||
|
||||
installPhase = ''
|
||||
DEST=$out/share/emacs/site-lisp
|
||||
ensureDir $DEST
|
||||
mkdir -p $DEST
|
||||
cp -a * $DEST
|
||||
'';
|
||||
|
||||
|
@ -23,7 +23,7 @@ in
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
ensureDir "dist"
|
||||
mkdir -p "dist"
|
||||
cat > build.properties <<EOF
|
||||
dist.lisp.dir = dist/share/emacs/site-lisp
|
||||
dist.java.lib.dir = dist/lib/java
|
||||
@ -50,7 +50,7 @@ in
|
||||
installPhase = ''
|
||||
ant install
|
||||
|
||||
ensureDir "$out/share/${name}"
|
||||
mkdir -p "$out/share/${name}"
|
||||
cp -rv java/bsh-commands "$out/share/${name}"
|
||||
|
||||
# Move everything that's not a JAR to $datadir. This includes
|
||||
|
@ -29,10 +29,10 @@ stdenv.mkDerivation rec {
|
||||
installPhase =
|
||||
'' make install install-info
|
||||
|
||||
ensureDir "$out/share/doc/${name}"
|
||||
mkdir -p "$out/share/doc/${name}"
|
||||
cp -v doc/org*.{html,pdf,txt} "$out/share/doc/${name}"
|
||||
|
||||
ensureDir "$out/share/org"
|
||||
mkdir -p "$out/share/org"
|
||||
cp -R contrib "$out/share/org/contrib"
|
||||
'';
|
||||
|
||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation {
|
||||
buildPhase = ''
|
||||
emacsDir="$out/share/emacs/site-lisp"
|
||||
|
||||
ensureDir "$emacsDir"
|
||||
mkdir -p "$emacsDir"
|
||||
cp -v "$src" "$emacsDir/quack.el"
|
||||
emacs --batch -f batch-byte-compile "$emacsDir/quack.el"
|
||||
'';
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation
|
||||
|
||||
installPhase = ''
|
||||
for n in . obby zeroconf jupiter; do
|
||||
ensureDir "$out/share/emacs/site-lisp/$n";
|
||||
mkdir -p "$out/share/emacs/site-lisp/$n";
|
||||
cp $n/*.el "$out/share/emacs/site-lisp/$n/";
|
||||
done
|
||||
install -D -m444 doc/card.pdf "$out/share/doc/rudel/card.pdf"
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ emacs ];
|
||||
|
||||
installPhase =
|
||||
'' ensureDir "$out/share/emacs/site-lisp"
|
||||
'' mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp -v *.el *.elc "$out/share/emacs/site-lisp"
|
||||
'';
|
||||
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [emacs];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/share/emacs/site-lisp"
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp lisp/*.el "$out/share/emacs/site-lisp/"
|
||||
'';
|
||||
|
||||
|
@ -17,19 +17,19 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/share/jEdit
|
||||
mkdir -p $out/share/jEdit
|
||||
cp build/jedit.jar $out/share/jEdit
|
||||
ensureDir $out/share/jEdit/modes
|
||||
mkdir -p $out/share/jEdit/modes
|
||||
cp -r modes/* $out/share/jEdit/modes
|
||||
ensureDir $out/share/jEdit/icons
|
||||
mkdir -p $out/share/jEdit/icons
|
||||
cp -r icons/* $out/share/jEdit/icons
|
||||
ensureDir $out/share/jEdit/macros
|
||||
mkdir -p $out/share/jEdit/macros
|
||||
cp -r macros/* $out/share/jEdit/macros
|
||||
ensureDir $out/share/jEdit/doc
|
||||
mkdir -p $out/share/jEdit/doc
|
||||
cp -r doc/* $out/share/jEdit/doc
|
||||
|
||||
sed -i "s|Icon=.*|Icon=$out/share/jEdit/icons/jedit-icon48.png|g" package-files/linux/deb/jedit.desktop
|
||||
ensureDir $out/share/applications
|
||||
mkdir -p $out/share/applications
|
||||
mv package-files/linux/deb/jedit.desktop $out/share/applications/jedit.desktop
|
||||
|
||||
patch package-files/linux/jedit << EOF
|
||||
@ -39,7 +39,7 @@ stdenv.mkDerivation {
|
||||
>
|
||||
EOF
|
||||
sed -i "s|/usr/share/jEdit/@jar.filename@|$out/share/jEdit/jedit.jar|g" package-files/linux/jedit
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp package-files/linux/jedit $out/bin/jedit
|
||||
chmod +x $out/bin/jedit
|
||||
'';
|
||||
|
@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
||||
phases = "buildPhase";
|
||||
|
||||
buildPhase = "
|
||||
ensureDir \$out/bin
|
||||
mkdir -p \$out/bin
|
||||
cat > \$out/bin/${jedit.name} << EOF
|
||||
#!/bin/sh
|
||||
exec $java -jar $jeditjar \\$*
|
||||
|
@ -3,7 +3,7 @@ source $stdenv/setup
|
||||
export NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L$motif/lib $NIX_CFLAGS_COMPILE"
|
||||
|
||||
installPhase() {
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp -p source/nedit source/nc $out/bin
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/share/vi/catalog
|
||||
mkdir -p $out/bin $out/share/vi/catalog
|
||||
for a in dutch english french german ru_SU.KOI8-R spanish swedish; do
|
||||
cp ../catalog/$a $out/share/vi/catalog
|
||||
done
|
||||
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
||||
ln -s $out/bin/nvi $out/bin/ex
|
||||
ln -s $out/bin/nvi $out/bin/view
|
||||
|
||||
ensureDir $out/share/man/man1
|
||||
mkdir -p $out/share/man/man1
|
||||
cp ../docs/USD.doc/vi.man/vi.1 $out/share/man/man1/nvi.1
|
||||
ln -s $out/share/man/man1/nvi.1 $out/share/man/man1/vi
|
||||
ln -s $out/share/man/man1/nvi.1 $out/share/man/man1/ex
|
||||
|
@ -15,11 +15,11 @@ let
|
||||
prePhases = "extraLib";
|
||||
extraLib = ''
|
||||
installScripts(){
|
||||
ensureDir ${targetScriptDir};
|
||||
mkdir -p ${targetScriptDir};
|
||||
for p in "$@"; do cp "$p" ${targetScriptDir}; done
|
||||
}
|
||||
installPlugins(){
|
||||
ensureDir ${targetPluginDir};
|
||||
mkdir -p ${targetPluginDir};
|
||||
for p in "$@"; do cp "$p" ${targetPluginDir}; done
|
||||
}
|
||||
'';
|
||||
@ -137,7 +137,7 @@ rec {
|
||||
url = http://registry.gimp.org/files/gimp-lqr-plugin-0.6.1.tar.bz2;
|
||||
sha256 = "00hklkpcimcbpjly4rjhfipaw096cpy768g9wixglwrsyqhil7l9";
|
||||
};
|
||||
#postInstall = ''ensureDir $out/nix-support; echo "${libLQR}" > "$out/nix-support/propagated-user-env-packages"'';
|
||||
#postInstall = ''mkdir -p $out/nix-support; echo "${libLQR}" > "$out/nix-support/propagated-user-env-packages"'';
|
||||
installPhase = "installPlugins src/gimp-lqr-plugin";
|
||||
};
|
||||
|
||||
@ -190,7 +190,7 @@ rec {
|
||||
};
|
||||
installPhase = "
|
||||
installPlugins ufraw-gimp
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp ufraw $out/bin
|
||||
";
|
||||
};
|
||||
@ -209,7 +209,7 @@ rec {
|
||||
|
||||
installPhase = "
|
||||
installPlugins gimplensfun
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp gimplensfun $out/bin
|
||||
";
|
||||
|
||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
exiv2 gettext ilmbase mesa freeglut glew libXmu libXi ];
|
||||
|
||||
postInstall = ''
|
||||
ensureDir "$out/nix-support"
|
||||
mkdir -p "$out/nix-support"
|
||||
echo "${enblendenfuse} ${autopanosiftc}" > $out/nix-support/propagated-user-env-packages
|
||||
'';
|
||||
|
||||
|
@ -20,7 +20,7 @@ buildPythonPackage {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
echo '#!/bin/sh' > $out/bin/jbrout
|
||||
echo "python $out/lib/python2.7/site-packages/jbrout-src-py2.7.egg/jbrout/jbrout.py" >> $out/bin/jbrout
|
||||
chmod +x $out/bin/jbrout
|
||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/opt/meshlab $out/bin $out/lib
|
||||
mkdir -p $out/opt/meshlab $out/bin $out/lib
|
||||
pushd distrib
|
||||
cp -R * $out/opt/meshlab
|
||||
popd
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ libtiff gettext];
|
||||
|
||||
preInstall = ''
|
||||
ensureDir $out/lib
|
||||
mkdir -p $out/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation {
|
||||
|
||||
# Very ugly - I don't know enough Mono to improve this. Isn't there any rpath in binaries?
|
||||
installPhase = ''
|
||||
ensureDir $out/lib/pinta $out/bin
|
||||
mkdir -p $out/lib/pinta $out/bin
|
||||
cp bin/*.{dll,exe} $out/lib/pinta
|
||||
cat > $out/bin/pinta << EOF
|
||||
#!/bin/sh
|
||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [ "-DWITH_RAWZOR=OFF" ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/lib
|
||||
mkdir -p $out/bin $out/lib
|
||||
cp rtgui/rt $out/bin
|
||||
# Weird kind of path reference
|
||||
cp -r ../release/* $out/bin
|
||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ erlang esdl ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/lib/${name}/ebin
|
||||
mkdir -p $out/bin $out/lib/${name}/ebin
|
||||
cp ebin/* $out/lib/${name}/ebin
|
||||
cp -R fonts textures shaders plugins $out/lib/$name
|
||||
cat << EOF > $out/bin/wings
|
||||
|
@ -22,7 +22,7 @@ rec {
|
||||
|
||||
preConfigure = a.fullDepEntry (''
|
||||
sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*')
|
||||
ensureDir $out/share/locale
|
||||
mkdir -p $out/share/locale
|
||||
'') ["doUnpack" "minInit" "defEnsureDir"];
|
||||
|
||||
name = "xaos-" + version;
|
||||
|
@ -3,7 +3,7 @@ source $stdenv/setup
|
||||
echo "unpacking $src..."
|
||||
tar xvfa $src
|
||||
|
||||
ensureDir $out/Adobe/Reader9
|
||||
mkdir -p $out/Adobe/Reader9
|
||||
|
||||
echo "unpacking reader..."
|
||||
set +e
|
||||
@ -24,5 +24,5 @@ substituteInPlace $out/Adobe/Reader*/bin/acroread \
|
||||
--replace /bin/ls $(type -P ls) \
|
||||
--replace xargs "xargs -r"
|
||||
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/Adobe/Reader*/bin/acroread $out/bin/acroread
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ snack tcl tk makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,nix-support,share/wavesurfer/}
|
||||
mkdir -p $out/{bin,nix-support,share/wavesurfer/}
|
||||
mv doc $out/share/wavesurfer
|
||||
mv * $out/nix-support
|
||||
ln -s $out/{nix-support,bin}/wavesurfer.tcl
|
||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp bitcoin-qt $out/bin
|
||||
cp src/bitcoind $out/bin
|
||||
'';
|
||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix} -I${freetype}/include/freetype2";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp bin/* $out/bin
|
||||
'';
|
||||
|
||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation {
|
||||
# JDK 7 beta seems to have fixed this (bug ?)
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,nix-support}
|
||||
mkdir -p $out/{bin,nix-support}
|
||||
cp -r ../bin/dist $out/nix-support
|
||||
sed -i 's/which/type -p/' $out/nix-support/dist/freemind.sh
|
||||
cat > $out/bin/freemind << EOF
|
||||
|
@ -6,7 +6,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [makeWrapper perl];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp get_iplayer $out/bin
|
||||
wrapProgram $out/bin/get_iplayer --suffix PATH ${ffmpeg}/bin:${flvstreamer}/bin
|
||||
'';
|
||||
|
@ -43,7 +43,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase =''
|
||||
ensureDir $out/{opt/googleearth/,bin};
|
||||
mkdir -p $out/{opt/googleearth/,bin};
|
||||
tar xf googleearth-data.tar -C $out/opt/googleearth
|
||||
tar xf googleearth-linux-x86.tar -C $out/opt/googleearth
|
||||
cp bin/googleearth $out/opt/googleearth
|
||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
buildPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/bin"
|
||||
mkdir -p "$out/bin"
|
||||
echo > "$out/bin/${pname}" "#!/bin/sh"
|
||||
echo >>"$out/bin/${pname}" "${java}/bin/java -Xmx512m -jar ${jarfile}"
|
||||
chmod +x "$out/bin/${pname}"
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
unpackPhase = "sh ${src}";
|
||||
installPhase = ''
|
||||
cd ${name}
|
||||
ensureDir $out/{bin,share/{${name},man/man1}}
|
||||
mkdir -p $out/{bin,share/{${name},man/man1}}
|
||||
mv makeself.lsm README $out/share/${name}
|
||||
mv makeself.sh $out/bin/makeself
|
||||
mv makeself.1 $out/share/man/man1/
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/share/${name}/Icons
|
||||
mkdir -p $out/bin $out/share/${name}/Icons
|
||||
cp bin/NaviPOWM $out/bin
|
||||
cp ../../common/Config/navipowm.ini $out/share/${name}
|
||||
cp ../../common/Images/* $out/share/${name}
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
||||
# error. Still this is better than getting it always.
|
||||
# TODO: build from source and patch this
|
||||
unpackPhase = ''
|
||||
ensureDir $out/bin;
|
||||
mkdir -p $out/bin;
|
||||
cd $out; unzip $src
|
||||
s=$out/bin/OpenJump
|
||||
dir=$(echo $out/openjump-*)
|
||||
|
@ -7,7 +7,7 @@ stdenv.mkDerivation {
|
||||
|
||||
# getline is defined differently in glibc now. So rename it.
|
||||
installPhase = "
|
||||
ensureDir \$out/bin
|
||||
mkdir -p \$out/bin
|
||||
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
||||
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
||||
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
unpackPhase = "unpackFile \$src; sourceRoot=.";
|
||||
|
||||
buildPhase = "pwd; gcc -o pstree pstree.c";
|
||||
installPhase = "ensureDir \$out/bin; cp pstree \$out/bin";
|
||||
installPhase = "mkdir -p \$out/bin; cp pstree \$out/bin";
|
||||
|
||||
meta = {
|
||||
description = "Show the set of running processes as a tree";
|
||||
|
@ -32,7 +32,7 @@ stdenv.mkDerivation {
|
||||
|
||||
# probably there is more to be done. But this seems to work for now (eg see gentoo ebuild)
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,share}
|
||||
mkdir -p $out/{bin,share}
|
||||
cp -r qcad $out/share
|
||||
|
||||
# The compilation does not fail with error code. But qcad will not exist
|
||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation (rec {
|
||||
''
|
||||
# make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
|
||||
+ stdenv.lib.optionalString perlSupport ''
|
||||
ensureDir $out/lib/perl5
|
||||
mkdir -p $out/lib/perl5
|
||||
ln -s $out/{lib/urxvt,lib/perl5/site_perl}
|
||||
'';
|
||||
|
||||
|
@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
||||
buildPhase = "./mk";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,share/sbagen/doc}
|
||||
mkdir -p $out/{bin,share/sbagen/doc}
|
||||
cp -r --target-directory=$out/share/sbagen examples scripts river1.ogg river2.ogg
|
||||
cp sbagen $out/bin
|
||||
cp --target-directory=$out/share/sbagen/doc README.txt SBAGEN.txt theory{,2}.txt {wave,holosync,focus,TODO}.txt
|
||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
||||
ls -1 bin/* | grep -ve 'bin/tr''$' | xargs rm
|
||||
# don't keep the other .exe file either
|
||||
find . -iname "*.exe" | xargs -n1 rm
|
||||
ensureDir $out/{nix-support/tr-files,bin}
|
||||
mkdir -p $out/{nix-support/tr-files,bin}
|
||||
cp -r . $out/nix-support/tr-files
|
||||
cat >> $out/bin/thinkingrock << EOF
|
||||
#!/bin/sh
|
||||
|
@ -31,7 +31,7 @@ rec {
|
||||
|
||||
doDeploy = a.fullDepEntry ''
|
||||
unzip ${src}
|
||||
ensureDir "$out"/{share/vue,bin}
|
||||
mkdir -p "$out"/{share/vue,bin}
|
||||
cp VUE.jar "$out/share/vue/vue.jar"
|
||||
echo '#!${a.stdenv.shell}' >> "$out/bin/vue"
|
||||
echo '${a.jre}/bin/java -jar "'"$out/share/vue/vue.jar"'" "$@"' >> "$out/bin/vue"
|
||||
|
@ -31,10 +31,10 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/lib/goo
|
||||
ensureDir $out/lib/fofi
|
||||
ensureDir $out/lib/xpdf
|
||||
ensureDir $out/include
|
||||
mkdir -p $out/lib/goo
|
||||
mkdir -p $out/lib/fofi
|
||||
mkdir -p $out/lib/xpdf
|
||||
mkdir -p $out/include
|
||||
|
||||
cp -v goo/libGoo.a $out/lib/goo
|
||||
cp -v fofi/libfofi.a $out/lib/fofi
|
||||
|
@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
ensureDir $out/libexec/chrome
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/libexec/chrome
|
||||
|
||||
cp -R * $out/libexec/chrome
|
||||
|
||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
||||
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
|
||||
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
|
||||
|
||||
ensureDir $out/share/applications
|
||||
mkdir -p $out/share/applications
|
||||
cp $desktopItem/share/applications/* $out/share/applications
|
||||
'';
|
||||
|
||||
|
@ -84,7 +84,7 @@ stdenv.mkDerivation {
|
||||
fi
|
||||
|
||||
# Put the GNU IceCat icon in the right place.
|
||||
ensureDir "$out/lib/$libDir/chrome/icons/default"
|
||||
mkdir -p "$out/lib/$libDir/chrome/icons/default"
|
||||
ln -s ../../../icons/default.xpm "$out/lib/$libDir/chrome/icons/default/"
|
||||
'';
|
||||
|
||||
|
@ -15,7 +15,7 @@ unpackPhase() {
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
ensureDir $out/lib/mozilla/plugins
|
||||
mkdir -p $out/lib/mozilla/plugins
|
||||
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
||||
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ unpackPhase() {
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
ensureDir $out/lib/mozilla/plugins
|
||||
mkdir -p $out/lib/mozilla/plugins
|
||||
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
||||
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ dontPatchELF=1
|
||||
sourceRoot=.
|
||||
|
||||
installPhase() {
|
||||
ensureDir $out/lib/mozilla/plugins
|
||||
mkdir -p $out/lib/mozilla/plugins
|
||||
cp -p libflashplayer.so $out/lib/mozilla/plugins
|
||||
patchelf --set-rpath $rpath $out/lib/mozilla/plugins/libflashplayer.so
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ rec {
|
||||
'') ["doUnpack" "minInit"];
|
||||
|
||||
postInstall = a.fullDepEntry(''
|
||||
ensureDir $out/share/${name}/plugin
|
||||
mkdir -p $out/share/${name}/plugin
|
||||
ln -s $out/lib/mozilla/plugins/mozplugger.so $out/share/${name}/plugin
|
||||
'') ["doMakeInstall" "minInit" "defEnsureDir"];
|
||||
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ pkgconfig browser (browser.gtk) libXpm gettext ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/lib/mozilla/plugins
|
||||
mkdir -p $out/lib/mozilla/plugins
|
||||
cp -p mplayerplug-in*.so mplayerplug-in*.xpt $out/lib/mozilla/plugins
|
||||
'';
|
||||
|
||||
|
@ -46,7 +46,7 @@ rec {
|
||||
};
|
||||
} // (if externalPurple2 then {
|
||||
postInstall = fullDepEntry (''
|
||||
ensureDir $out/lib/purple-2
|
||||
mkdir -p $out/lib/purple-2
|
||||
cp ${args.purple2Source}/lib/purple-2/* $out/lib/purple-2/
|
||||
'') ["minInit" "defEnsureDir"]; }
|
||||
else {})
|
||||
|
@ -46,7 +46,7 @@ rec {
|
||||
};
|
||||
} // (if externalPurple2 then {
|
||||
postInstall = fullDepEntry (''
|
||||
ensureDir $out/lib/purple-2
|
||||
mkdir -p $out/lib/purple-2
|
||||
cp ${args.purple2Source}/lib/purple-2/* $out/lib/purple-2/
|
||||
'') ["minInit" "defEnsureDir"]; }
|
||||
else {})
|
||||
|
@ -59,14 +59,14 @@ rec {
|
||||
doDeploy = a.fullDepEntry ''
|
||||
TARGET_DIR="$out/share/oneteam/app"
|
||||
BUILD_DIR="$PWD"
|
||||
ensureDir "$TARGET_DIR"
|
||||
mkdir -p "$TARGET_DIR"
|
||||
cd "$TARGET_DIR"
|
||||
unzip "$BUILD_DIR/oneteam.xulapp"
|
||||
ensureDir "$out/bin"
|
||||
mkdir -p "$out/bin"
|
||||
echo "#! ${a.stdenv.shell}" > "$out/bin/oneteam"
|
||||
echo "\"${xulrunner}/bin/xulrunner\" \"$TARGET_DIR/application.ini\"" > "$out/bin/oneteam"
|
||||
chmod a+x "$out/bin/oneteam"
|
||||
ensureDir "$out/share/doc"
|
||||
mkdir -p "$out/share/doc"
|
||||
cp -r "$BUILD_DIR/docs" "$out/share/doc/oneteam"
|
||||
'' ["defEnsureDir"];
|
||||
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
makeFlags = "PURPLE_LIBDIR=lib PURPLE_DATADIR=share/data DESTDIR=$$out";
|
||||
preInstall = "ensureDir \$out/share";
|
||||
preInstall = "mkdir -p \$out/share";
|
||||
postInstall = "ln -s \$out/lib/purple-2 \$out/share/pidgin-msn-pecan";
|
||||
|
||||
buildInputs = [pidgin];
|
||||
|
@ -12,7 +12,7 @@ rec {
|
||||
];
|
||||
|
||||
preBuild = fullDepEntry (''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
ln -s $(which convert) $out/bin
|
||||
ln -s $(which xelatex) $out/bin
|
||||
ln -s $(which dvips) $out/bin
|
||||
@ -26,8 +26,8 @@ rec {
|
||||
'') ["minInit" "addInputs" "defEnsureDir" "doUnpack"];
|
||||
|
||||
postInstall = fullDepEntry (''
|
||||
ensureDir $out/lib
|
||||
ensureDir $out/share/pidgin-latex
|
||||
mkdir -p $out/lib
|
||||
mkdir -p $out/share/pidgin-latex
|
||||
ln -s ../../lib/pidgin/LaTeX.so $out/share/pidgin-latex
|
||||
'') ["minInit" "defEnsureDir" "doMakeInstall"];
|
||||
|
||||
|
@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
PSI_PLUGINS="$out/lib/psi/plugins"
|
||||
ensureDir "$PSI_PLUGINS"
|
||||
mkdir -p "$PSI_PLUGINS"
|
||||
ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
|
||||
PSI_QT_PLUGINS="$out/share/psi"
|
||||
ensureDir "$PSI_QT_PLUGINS"/crypto
|
||||
mkdir -p "$PSI_QT_PLUGINS"/crypto
|
||||
ln -s "${qca2_ossl}"/lib/qt4/plugins/crypto/*.so "$PSI_QT_PLUGINS"/crypto
|
||||
'';
|
||||
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postBuild = ''
|
||||
TARGET="$out/share/psi/plugins"
|
||||
ensureDir "$TARGET"
|
||||
mkdir -p "$TARGET"
|
||||
cp gstprovider/*.so "$TARGET"/
|
||||
'';
|
||||
|
||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
wrapPythonPrograms
|
||||
|
||||
ensureDir $out/lib/torchat
|
||||
mkdir -p $out/lib/torchat
|
||||
cp -rf * $out/lib/torchat
|
||||
makeWrapper ${python}/bin/python $out/bin/torchat \
|
||||
--set PYTHONPATH $out/lib/torchat:$program_PYTHONPATH \
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
preConfigure = "cd src";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp iptraf $out/bin
|
||||
'';
|
||||
|
||||
|
@ -90,7 +90,7 @@ stdenv.mkDerivation {
|
||||
--replace /bin/ls "$(type -tP ls)"
|
||||
|
||||
# Create a desktop item.
|
||||
ensureDir $out/share/applications
|
||||
mkdir -p $out/share/applications
|
||||
cat > $out/share/applications/thunderbird.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||
++ (stdenv.lib.optional jackSupport jackaudio);
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
cp -r ./release $out/bin
|
||||
'';
|
||||
|
||||
|
@ -4,7 +4,7 @@ stdenv.mkDerivation {
|
||||
name = "offrss-1.1";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp offrss $out/bin
|
||||
'';
|
||||
|
||||
|
@ -12,7 +12,7 @@ with builderDefs;
|
||||
openssl libX11 boost];
|
||||
configureFlags = [];
|
||||
doScons = fullDepEntry (''
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11";
|
||||
|
||||
for i in gettext xgettext msgfmt msgcat; do
|
||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation (rec {
|
||||
# Byte code compilation (the ocaml opt compiler is not supported in many platforms)
|
||||
buildPhase = "make mlnet.byte";
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp mlnet.byte $out/bin/mlnet
|
||||
'';
|
||||
|
||||
|
@ -11,9 +11,9 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ openssl libsamplerate ];
|
||||
|
||||
postInstall = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp pjsip-apps/bin/pjsua-* $out/bin/pjsua
|
||||
ensureDir $out/share/${name}/samples
|
||||
mkdir -p $out/share/${name}/samples
|
||||
cp pjsip-apps/bin/samples/*/* $out/share/${name}/samples
|
||||
'';
|
||||
|
||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||
phases = "unpackPhase installPhase";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{opt/skype/,bin}
|
||||
mkdir -p $out/{opt/skype/,bin}
|
||||
cp -r * $out/opt/skype/
|
||||
|
||||
fullPath=
|
||||
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
||||
---
|
||||
> Icon=$out/opt/skype/icons/SkypeBlue_48x48.png
|
||||
EOF
|
||||
ensureDir $out/share/applications
|
||||
mkdir -p $out/share/applications
|
||||
mv skype.desktop $out/share/applications
|
||||
'';
|
||||
|
||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation (rec {
|
||||
makeFlags = "INSTALLDIR=$(out)/bin/" + (if enableX11 then " UISTYLE=gtk2" else "")
|
||||
+ (if ! nativeCode then " NATIVE=false" else "");
|
||||
|
||||
preInstall = "ensureDir $out/bin";
|
||||
preInstall = "mkdir -p $out/bin";
|
||||
|
||||
postInstall = if enableX11 then ''
|
||||
for i in $(cd $out/bin && ls); do
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,sbin} $out/share/man/{man1,man5}
|
||||
mkdir -p $out/{bin,sbin} $out/share/man/{man1,man5}
|
||||
cp src/vnstat $out/bin
|
||||
cp src/vnstatd $out/sbin
|
||||
cp man/vnstat.1 man/vnstatd.1 $out/share/man/man1
|
||||
|
@ -25,7 +25,7 @@ in
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/bin" "$out/share/doc/impressive"
|
||||
mkdir -p "$out/bin" "$out/share/doc/impressive"
|
||||
mv impressive.py "$out/bin/impressive"
|
||||
mv * "$out/share/doc/impressive"
|
||||
|
||||
|
@ -19,7 +19,7 @@ in
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/opt/mmex
|
||||
mkdir -p $out/opt/mmex
|
||||
cp -r mmex runtime/{*.txt,*.png,*.db3,en,help,*.wav,*.ico} $out/opt/mmex
|
||||
'';
|
||||
|
||||
|
@ -70,7 +70,7 @@ installPhase() {
|
||||
-f openoffice.lst -l en-US -p OpenOffice \
|
||||
-buildid $BUILD -simple $ooFiles)
|
||||
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
for i in soffice ooffice; do wrapSOffice $i; done
|
||||
|
||||
# Create some wrappers to start individual OpenOffice components.
|
||||
@ -78,7 +78,7 @@ installPhase() {
|
||||
|
||||
# Create symlinks to desktop files, so that openoffice.org apps can be picked from
|
||||
# the application menu in KDE and GNOME
|
||||
ensureDir $out/share
|
||||
mkdir -p $out/share
|
||||
ln -s $out/lib/openoffice/openoffice.org3/share/xdg $out/share/applications
|
||||
|
||||
# Apply a minor correction to the *.desktop files in order to correctly address the icons
|
||||
|
@ -28,7 +28,7 @@ lib.overrideDerivation go_oo (attrs: {
|
||||
|
||||
makesh = ''
|
||||
sed -i -e '/-x $WG/d' -e "s/WGET='''/WGET='echo XXX'/" download
|
||||
ensureDir $out
|
||||
mkdir -p $out
|
||||
|
||||
set +e
|
||||
./download --all | grep XXX |
|
||||
|
@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
bin/ooinstall $out
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
for a in $out/program/{sbase,scalc,sdraw,simpress,smath,soffice,swriter,soffice.bin}; do
|
||||
ln -s $a $out/bin
|
||||
done
|
||||
|
@ -33,22 +33,22 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/lib
|
||||
mkdir -p $out/lib
|
||||
shareddir=/nix/var/lib/arb
|
||||
# link out writable shared location lib/pts
|
||||
ensureDir $shareddir/lib/pts
|
||||
mkdir -p $shareddir/lib/pts
|
||||
cp -vau lib/pts $shareddir/lib
|
||||
rm -vrf lib/pts
|
||||
ln -vs $shareddir/lib/pts $out/lib/pts
|
||||
chmod a+rwx $shareddir/lib/pts
|
||||
# link out writable shared location lib/nas/
|
||||
ensureDir $shareddir/lib/nas
|
||||
mkdir -p $shareddir/lib/nas
|
||||
cp -vau lib/nas $shareddir/lib
|
||||
rm -vrf lib/nas
|
||||
ln -vs $shareddir/lib/nas $out/lib/nas
|
||||
chmod a+rwx $shareddir/lib/nas
|
||||
# link out shared lib/pixmaps (not sure about this, yet):
|
||||
ensureDir $shareddir/lib/pixmaps
|
||||
mkdir -p $shareddir/lib/pixmaps
|
||||
cp -vau lib/pixmaps $shareddir/lib
|
||||
rm -vrf lib/pixmaps
|
||||
ln -vs $shareddir/lib/pixmaps $out/lib/pixmaps
|
||||
|
@ -8,11 +8,11 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
|
||||
cp -v pal2nal.pl $out/bin
|
||||
|
||||
ensureDir $out/doc
|
||||
mkdir -p $out/doc
|
||||
|
||||
cp -v README $out/doc
|
||||
'';
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
make -fMakefile.linux
|
||||
'';
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp -v ../Slr $out/bin
|
||||
'';
|
||||
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp tetgen $out/bin
|
||||
'';
|
||||
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [polyml];
|
||||
|
||||
buildCommand = ''
|
||||
ensureDir "$out/src"
|
||||
mkdir -p "$out/src"
|
||||
cd "$out/src"
|
||||
|
||||
tar -xzf "$src"
|
||||
@ -28,7 +28,7 @@ stdenv.mkDerivation {
|
||||
|
||||
bin/build -expk -symlink
|
||||
|
||||
ensureDir "$out/bin"
|
||||
mkdir -p "$out/bin"
|
||||
ln -st $out/bin $out/src/hol/bin/*
|
||||
# ln -s $out/src/hol/bin $out/bin
|
||||
'';
|
||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/lib/hol_light" "$out/bin"
|
||||
mkdir -p "$out/lib/hol_light" "$out/bin"
|
||||
cp -a . $out/lib/hol_light
|
||||
echo "${start_script}" > "$out/bin/hol_light"
|
||||
chmod a+x "$out/bin/hol_light"
|
||||
|
@ -30,10 +30,10 @@ rec {
|
||||
phaseNames = ["doConfigure" "doMake" "doDeploy"];
|
||||
configureCommand = "sh configure";
|
||||
doDeploy = a.fullDepEntry (''
|
||||
ensureDir "$out/bin"
|
||||
mkdir -p "$out/bin"
|
||||
cp iproveropt "$out/bin"
|
||||
|
||||
ensureDir "$out/share/${name}"
|
||||
mkdir -p "$out/share/${name}"
|
||||
cp *.p "$out/share/${name}"
|
||||
echo -e "#! /bin/sh\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
|
||||
chmod a+x "$out"/bin/iprover
|
||||
|
@ -41,7 +41,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
mv $TMP/$name $out
|
||||
cd $out/$name
|
||||
bin/isabelle install -p $out/bin
|
||||
|
@ -29,17 +29,17 @@ rec {
|
||||
phaseNames = ["makeInstallationDir" "doUnpack" "doMake" "doFinalize"];
|
||||
|
||||
makeInstallationDir = a.fullDepEntry (''
|
||||
ensureDir "$out/share/leo2/build-dir"
|
||||
mkdir -p "$out/share/leo2/build-dir"
|
||||
cd "$out/share/leo2/build-dir"
|
||||
'') ["minInit" "defEnsureDir"];
|
||||
|
||||
goSrcDir = "cd src/";
|
||||
|
||||
doFinalize = a.fullDepEntry (''
|
||||
ensureDir "$out/bin"
|
||||
mkdir -p "$out/bin"
|
||||
echo -e "#! /bin/sh\\n$PWD/../bin/leo --atprc $out/etc/leoatprc \"\$@\"\\n" > "$out/bin/leo"
|
||||
chmod a+x "$out/bin/leo"
|
||||
ensureDir "$out/etc"
|
||||
mkdir -p "$out/etc"
|
||||
echo -e "e = ${eprover}/bin/eprover\\nepclextract = ${eprover}/bin/epclextract" > "$out/etc/leoatprc"
|
||||
'') ["minInit" "doMake" "defEnsureDir"];
|
||||
|
||||
|
@ -41,7 +41,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ensureDir $out/bin
|
||||
mkdir -p $out/bin
|
||||
ln -vs $RTDIR/matita $RTDIR/matitac $RTDIR/matitaclean $RTDIR/matitadep $RTDIR/matitawiki $out/bin
|
||||
'';
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user