From 88ab6c1edd61971d77d9918a16d178b118ae3e99 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 2 Sep 2004 13:54:23 +0000 Subject: [PATCH] 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 --- pkgs/stdenv/nix-linux/gcc-static/builder.sh | 5 +++++ pkgs/stdenv/nix-linux/gcc-static/default.nix | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/stdenv/nix-linux/gcc-static/builder.sh create mode 100644 pkgs/stdenv/nix-linux/gcc-static/default.nix 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 000000000000..982d72541063 --- /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 000000000000..04dc2ae75b25 --- /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"; + }; +}