[Nix-dev] addition of GNU Shishi and GNU Radius

Brian Gough bjg at gnu.org
Sun Apr 25 21:34:38 CEST 2010


At Fri, 23 Apr 2010 23:22:49 +0200,
Ludovic Courtès wrote:
> Nice!  I’ve committed your patch (see
> <https://svn.nixos.org/viewvc/nix?rev=21284&view=rev>) with minor
> tweaks:
> 
>   1. Added you to ‘maintainers.nix’, which will save you some typing
>      for the next packages.  ;-)
> 
>   2. Added ‘meta.platforms = all;’, which means that the package will be
>      built by Hydra, and that it will be built on all supported
>      platforms.  That also means that it will send you build
>      notifications by email, which may or may not be what you want.
> 
>   3. Slightly changed formatting to conform to
>      ‘doc/coding-conventions.xml’.
>   
> Also, note that nix-prefetch-url(1), which can be used to download the
> tarball directly to the Nix store, returns a base32-encoded sha256 hash,
> which is more compact that the hexadecimal version.
> 
> Welcome on board!  :-)
> 

Thanks.  Here's a patch to add a couple of servers, GNU Shishi
(Kerberos 5) and GNU Radius.

Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix	(revision 21310)
+++ pkgs/top-level/all-packages.nix	(working copy)
@@ -5629,11 +5629,19 @@
     inherit xmpppy python makeWrapper fetchcvs;
   };
 
+  radius = import ../servers/radius {
+    inherit fetchurl stdenv m4 groff readline;
+  };
+
   samba = makeOverridable (import ../servers/samba) {
     inherit stdenv fetchurl readline openldap pam kerberos popt iniparser
   libunwind acl fam;
   };
 
+  shishi = import ../servers/shishi {
+    inherit fetchurl stdenv libtasn1 libgcrypt gnutls;
+  };
+
   squids = recurseIntoAttrs( import ../servers/squid/squids.nix {
     inherit fetchurl stdenv perl lib composableDerivation;
   });
Index: pkgs/servers/shishi/default.nix
===================================================================
--- pkgs/servers/shishi/default.nix	(revision 0)
+++ pkgs/servers/shishi/default.nix	(revision 0)
@@ -0,0 +1,36 @@
+{ fetchurl, stdenv, libtasn1, libgcrypt, gnutls }:
+
+stdenv.mkDerivation rec {
+  name = "shishi-0.0.43";
+
+  src = fetchurl {
+    url = "ftp://alpha.gnu.org/gnu/shishi/${name}.tar.gz";
+    sha256 = "17hj4lklvprws6r5bhavi43yj3bz8sv554gcqvvsjrsq8w3qjxm0";
+  };
+
+  buildInputs = [ libtasn1 libgcrypt gnutls ] ;
+
+  doCheck = true;
+
+  meta = {
+    description = "GNU Shishi, free implementation of the Kerberos 5 network security system";
+
+    longDescription =
+      '' GNU Shishi is an implementation of the Kerberos 5 network 
+         authentication system, as specified in RFC 4120. Shishi can be 
+         used to authenticate users in distributed systems.
+
+         Shishi contains a library ('libshishi') that can be used by
+         application developers to add support for Kerberos 5.  Shishi
+         contains a command line utility ('shishi') that is used by
+         users to acquire and manage tickets (and more).  The server
+         side, a Key Distribution Center, is implemented by 'shishid'.
+       '';
+
+    homepage = http://www.gnu.org/software/shishi/;
+    license = "GPLv3+";
+
+    maintainers = [ stdenv.lib.maintainers.bjg ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}
Index: pkgs/servers/radius/default.nix
===================================================================
--- pkgs/servers/radius/default.nix	(revision 0)
+++ pkgs/servers/radius/default.nix	(revision 0)
@@ -0,0 +1,33 @@
+{ fetchurl, stdenv, m4, groff, readline }:
+
+stdenv.mkDerivation rec {
+  name = "radius-1.6.1";
+
+  src = fetchurl {
+    url = "mirror://gnu/radius/${name}.tar.gz";
+    sha256 = "1l4k17zkbjsmk8mqrjjymagq8a8kwgrain9mcb5zp8jaf1qbclrh";
+  };
+
+  buildInputs = [ m4 groff readline ] ;
+
+  doCheck = true;
+
+  meta = {
+    description = "GNU Radius remote authentication and accounting system";
+
+    longDescription =
+      '' Radius is a server for remote user authentication and
+         accounting.  Its primary use is for Internet Service
+         Providers, though it may as well be used on any network that
+         needs a centralized authentication and/or accounting service
+         for its workstations.  The package includes an authentication
+         and accounting server and administrator tools.
+      '';
+
+    homepage = http://www.gnu.org/software/radius/;
+    license = "GPLv3+";
+
+    maintainers = [ stdenv.lib.maintainers.bjg ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}



More information about the nix-dev mailing list