* Generate wrappers to add Mono to PATH and to add Monodoc and GTK# to
the GAC search path. Unfortunately Mono doesn't yet seem to implement the .NET mechanisms for specifying locations for module dependencies. svn path=/nixpkgs/trunk/; revision=2343
This commit is contained in:
parent
acd95ba26e
commit
8853b55a2e
21
pkgs/applications/editors/monodoc/builder.sh
Normal file
21
pkgs/applications/editors/monodoc/builder.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
. $makeWrapper
|
||||||
|
|
||||||
|
postInstall=postInstall
|
||||||
|
postInstall() {
|
||||||
|
mv $out/bin $out/bin-orig
|
||||||
|
mkdir $out/bin
|
||||||
|
|
||||||
|
for i in $out/bin-orig/*; do
|
||||||
|
echo "wrapping $(basename $i)"
|
||||||
|
# !!! TODO: figure out the MONO_GAC_PREFIX automatically
|
||||||
|
makeWrapper "$i" "$out/bin/$(basename $i)" \
|
||||||
|
--suffix PATH ':' "$(dirname $(type -p mono))" \
|
||||||
|
--suffix MONO_GAC_PREFIX ':' "$gtksharp" \
|
||||||
|
--suffix MONO_GAC_PREFIX ':' "$out"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
||||||
|
|
@ -3,10 +3,15 @@
|
|||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "monodoc-1.0.6";
|
name = "monodoc-1.0.6";
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.go-mono.com/archive/1.0.6/monodoc-1.0.6.tar.gz;
|
url = http://www.go-mono.com/archive/1.0.6/monodoc-1.0.6.tar.gz;
|
||||||
md5 = "f2fc27e8e4717d90dc7efa2450625693";
|
md5 = "f2fc27e8e4717d90dc7efa2450625693";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
|
||||||
|
|
||||||
buildInputs = [mono gtksharp pkgconfig];
|
buildInputs = [mono gtksharp pkgconfig];
|
||||||
|
|
||||||
|
inherit gtksharp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user