summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2004-09-02 13:54:23 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2004-09-02 13:54:23 +0000
commit88ab6c1edd61971d77d9918a16d178b118ae3e99 (patch)
treeb1a35f79aa888069cf857ea986607365899ee59f /pkgs
parent261451c3ece1d7295f9d50aba807278513c1b914 (diff)
downloadnixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar.gz
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar.bz2
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar.lz
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar.xz
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.tar.zst
nixpkgs-88ab6c1edd61971d77d9918a16d178b118ae3e99.zip
add a statically compiled version of gcc...
Use with a bit of care though, because it will need an extra flag to be able to find the right version of cc1, etc.

svn path=/nixpkgs/trunk/; revision=1374
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/stdenv/nix-linux/gcc-static/builder.sh5
-rw-r--r--pkgs/stdenv/nix-linux/gcc-static/default.nix10
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/stdenv/nix-linux/gcc-static/builder.sh b/pkgs/stdenv/nix-linux/gcc-static/builder.sh
new file mode 100644
index 00000000000..982d7254106
--- /dev/null
+++ b/pkgs/stdenv/nix-linux/gcc-static/builder.sh
@@ -0,0 +1,5 @@
+. $stdenv/setup
+ 
+tar zxvf $src
+mkdir $out
+cp -a gcc-3.3.4/* $out
diff --git a/pkgs/stdenv/nix-linux/gcc-static/default.nix b/pkgs/stdenv/nix-linux/gcc-static/default.nix
new file mode 100644
index 00000000000..04dc2ae75b2
--- /dev/null
+++ b/pkgs/stdenv/nix-linux/gcc-static/default.nix
@@ -0,0 +1,10 @@
+{stdenv, fetchurl}:
+ 
+stdenv.mkDerivation {
+  name = "gcc-static-3.3.4";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/gcc-3.3.4-static-nix.tar.gz;
+    md5 = "8b5c3a5881209edb15682e5e0c7459e4";
+  };
+}