diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-05-12 15:46:47 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-05-12 15:46:47 +0000 |
commit | 2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a (patch) | |
tree | 6383aea92f867c5005dbc8310ec4240ab2c31e33 | |
parent | 32fcf8d32bf3c8a9480e2899db726aa566bf7643 (diff) | |
download | nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar.gz nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar.bz2 nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar.lz nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar.xz nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.tar.zst nixlib-2d4fa8897e1d3c0be52f4b4b91e86790d582cf4a.zip |
Add GNU Hurd (headers).
svn path=/nixpkgs/trunk/; revision=21751
-rw-r--r-- | pkgs/os-specific/gnu/hurd/default.nix | 44 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 7 |
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/os-specific/gnu/hurd/default.nix b/pkgs/os-specific/gnu/hurd/default.nix new file mode 100644 index 000000000000..c9e1a1e6cab0 --- /dev/null +++ b/pkgs/os-specific/gnu/hurd/default.nix @@ -0,0 +1,44 @@ +{ fetchgit, stdenv, autoconf, automake, libtool, texinfo +, machHeaders, mig, headersOnly ? true }: + +let rev = "7913beaef3e6a2c4f7f315a8db7a31dbe1f713e0"; in +stdenv.mkDerivation (rec { + name = "hurd-0.4-${rev}"; + + src = fetchgit { + url = "git://git.sv.gnu.org/hurd/hurd.git"; + sha256 = "bf4f1376b26b0dcdfd23ff9c9b01440f50d032f48946fad6d3861539978f8f4d"; + inherit rev; + }; + + buildInputs = [ autoconf automake libtool texinfo mig ]; + propagatedBuildInputs = [ machHeaders ]; + + configureFlags = "--build=i586-pc-gnu"; + + preConfigure = "autoreconf -vfi"; + + meta = { + description = "The GNU Hurd, GNU project's replacement for the Unix kernel"; + + longDescription = + '' The GNU Hurd is the GNU project's replacement for the Unix kernel. + It is a collection of servers that run on the Mach microkernel to + implement file systems, network protocols, file access control, and + other features that are implemented by the Unix kernel or similar + kernels (such as Linux). + ''; + + license = "GPLv2+"; + + homepage = http://www.gnu.org/software/hurd/; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + }; +} + +// + +(if headersOnly + then { buildPhase = ":"; installPhase = "make install-headers"; } + else {})) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 92a876d1f70c..2f4534d42f01 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6065,6 +6065,13 @@ let inherit fetchurl stdenv ncurses; }; + hurdHeaders = import ../os-specific/gnu/hurd { + inherit fetchgit stdenv autoconf libtool texinfo machHeaders; + mig = migCross; + automake = automake111x; + headersOnly = true; + }; + hwdata = import ../os-specific/linux/hwdata { inherit fetchurl stdenv; }; |