From 53c0ae3af3d3e9f613f8eae8ef201bd3c4044be5 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sat, 24 Dec 2005 00:25:18 +0000 Subject: [PATCH] add a static version of module-init-tools for NixOS svn path=/nixpkgs/trunk/; revision=4427 --- .../linux/module-init-tools-static/builder.sh | 5 +++++ .../linux/module-init-tools-static/default.nix | 13 +++++++++++++ .../module-init-tools-static.patch | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 pkgs/os-specific/linux/module-init-tools-static/builder.sh create mode 100644 pkgs/os-specific/linux/module-init-tools-static/default.nix create mode 100644 pkgs/os-specific/linux/module-init-tools-static/module-init-tools-static.patch diff --git a/pkgs/os-specific/linux/module-init-tools-static/builder.sh b/pkgs/os-specific/linux/module-init-tools-static/builder.sh new file mode 100644 index 000000000000..4d8d3b93e636 --- /dev/null +++ b/pkgs/os-specific/linux/module-init-tools-static/builder.sh @@ -0,0 +1,5 @@ +source $stdenv/setup + +export LDFLAGS=-static + +genericBuild diff --git a/pkgs/os-specific/linux/module-init-tools-static/default.nix b/pkgs/os-specific/linux/module-init-tools-static/default.nix new file mode 100644 index 000000000000..51e5498af5b3 --- /dev/null +++ b/pkgs/os-specific/linux/module-init-tools-static/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "module-init-tools-3.2.2"; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-3.2.2.tar.bz2; + md5 = "a1ad0a09d3231673f70d631f3f5040e9"; + }; + patches = [./module-init-tools-static.patch]; +} + + diff --git a/pkgs/os-specific/linux/module-init-tools-static/module-init-tools-static.patch b/pkgs/os-specific/linux/module-init-tools-static/module-init-tools-static.patch new file mode 100644 index 000000000000..d71bec39dcb3 --- /dev/null +++ b/pkgs/os-specific/linux/module-init-tools-static/module-init-tools-static.patch @@ -0,0 +1,12 @@ +diff -ruN module-init-tools-3.2.2/configure module-init-tools-3.2.2.new/configure +--- module-init-tools-3.2.2/configure 2005-12-07 05:43:46.000000000 +0100 ++++ module-init-tools-3.2.2.new/configure 2005-12-24 00:37:44.000000000 +0100 +@@ -1741,7 +1741,7 @@ + #define CONFIG_USE_ZLIB 1 + _ACEOF + +- zlib_flags="-Wl,-Bstatic -lz -Wl,-Bdynamic" ++ zlib_flags="-Wl,-Bstatic -lz" + fi + fi; +