diff --git a/pkgs/autoxt/autoxt-build.sh b/pkgs/autoxt/autoxt-build.sh new file mode 100755 index 000000000000..ca959b95703f --- /dev/null +++ b/pkgs/autoxt/autoxt-build.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +export NIX_LDFLAGS=-Wl,-s + +. $stdenv/setup || exit 1 + +echo "out: $out" +echo "pwd: `pwd`" +echo "src: $src" +ls $src + +cp -r $src autoxt +ls + +cd autoxt || exit 1 +./bootstrap || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 + diff --git a/pkgs/autoxt/autoxt.fix b/pkgs/autoxt/autoxt.fix new file mode 100644 index 000000000000..1a58dd01cfac --- /dev/null +++ b/pkgs/autoxt/autoxt.fix @@ -0,0 +1,16 @@ +Function(["rev"], + Package( + [ ("name", "autoxt") + + , ("build", Relative("autoxt/autoxt-build.sh")) + + , ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"), + [ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/autoxt") + , ("name", "autoxt") + , ("rev", Var("rev")) + ])) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + ] + ) +) diff --git a/pkgs/srts/srts-build.sh b/pkgs/srts/srts-build.sh new file mode 100755 index 000000000000..fdb3f41b15df --- /dev/null +++ b/pkgs/srts/srts-build.sh @@ -0,0 +1,24 @@ +#! /bin/sh + +set -e + +export NIX_LDFLAGS=-Wl,-s + +. $stdenv/setup + +export PATH=$autoxt/bin:$PATH + +echo "out: $out" +echo "pwd: `pwd`" +echo "src: $src" +ls $src + +cp -r $src srts +ls + +cd srts +./bootstrap +./configure --prefix=$out --with-aterm=$aterm +make +make install + diff --git a/pkgs/srts/srts.fix b/pkgs/srts/srts.fix new file mode 100644 index 000000000000..0808a5709257 --- /dev/null +++ b/pkgs/srts/srts.fix @@ -0,0 +1,20 @@ +Function(["rev"], + Package( + [ ("name", "srts") + + , ("build", Relative("srts/srts-build.sh")) + + , ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"), + [ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/srts") + , ("name", "srts") + , ("rev", Var("rev")) + ]) + ) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + , ("aterm", IncludeFix("aterm/aterm.fix")) + , ("autoxt", App(IncludeFix("autoxt/autoxt.fix"),[("rev",Var("rev"))])) + ] + ) +) + diff --git a/pkgs/strategoxt/strategoxt-build.sh b/pkgs/strategoxt/strategoxt-build.sh new file mode 100755 index 000000000000..a2f1641bf238 --- /dev/null +++ b/pkgs/strategoxt/strategoxt-build.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +mkdir $out + +exit 0 \ No newline at end of file diff --git a/pkgs/strategoxt/strategoxt-head.fix b/pkgs/strategoxt/strategoxt-head.fix new file mode 100644 index 000000000000..d5c9210bb11d --- /dev/null +++ b/pkgs/strategoxt/strategoxt-head.fix @@ -0,0 +1,4 @@ +App( + IncludeFix("strategoxt/strategoxt.fix") + , [("rev", "3385")] +) \ No newline at end of file diff --git a/pkgs/strategoxt/strategoxt.fix b/pkgs/strategoxt/strategoxt.fix new file mode 100644 index 000000000000..dbd0a8b83d2e --- /dev/null +++ b/pkgs/strategoxt/strategoxt.fix @@ -0,0 +1,16 @@ +Function(["rev"], + Package( + [ ("name", "strategoxt") + + , ("build", Relative("system/populate-linkdirs.pl")) + + , ("actAterm", IncludeFix("aterm/aterm.fix")) + + , ("actAutoxt", App(IncludeFix("autoxt/autoxt.fix"), [("rev",Var("rev"))])) + + , ("actSrts", App(IncludeFix("srts/srts.fix"), [("rev", Var("rev"))])) + + , ("actXtc", App(IncludeFix("xtc/xtc.fix"),[("rev", Var("rev"))])) + ] + ) +) diff --git a/pkgs/xtc/xtc-build.sh b/pkgs/xtc/xtc-build.sh new file mode 100755 index 000000000000..895ed5b0bd31 --- /dev/null +++ b/pkgs/xtc/xtc-build.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +set -e + +export NIX_LDFLAGS=-Wl,-s + +. $stdenv/setup + +export PATH=$autoxt/bin:$PATH + +cp -r $src $name +cd $name +./bootstrap +./configure --prefix=$out --with-aterm=$aterm --with-srts=$srts +make +make install diff --git a/pkgs/xtc/xtc-head.fix b/pkgs/xtc/xtc-head.fix new file mode 100644 index 000000000000..7ab6fd1d850b --- /dev/null +++ b/pkgs/xtc/xtc-head.fix @@ -0,0 +1,4 @@ +App( + IncludeFix("xtc/xtc.fix") + , [("rev", "3385")] +) \ No newline at end of file diff --git a/pkgs/xtc/xtc.fix b/pkgs/xtc/xtc.fix new file mode 100755 index 000000000000..e7b54871d9c3 --- /dev/null +++ b/pkgs/xtc/xtc.fix @@ -0,0 +1,20 @@ +Function(["rev"], + Package( + [ ("name", "xtc") + + , ("build", Relative("xtc/xtc-build.sh")) + + , ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"), + [ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/xtc") + , ("name", "xtc") + , ("rev", Var("rev")) + ]) + ) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + , ("aterm", IncludeFix("aterm/aterm.fix")) + , ("autoxt", App(IncludeFix("autoxt/autoxt.fix"),[("rev",Var("rev"))])) + , ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))])) + ] + ) +)