[Nix-dev] [submission] adns-1.4

Nicolas Pierron nicolas.b.pierron at gmail.com
Wed Jun 11 09:35:49 CEST 2008


On Wed, Jun 11, 2008 at 00:17, Peter Simons <simons at cryp.to> wrote:
> Hi,

Hi Peter,

> this is the first nix package I ever wrote, so I hope I'm doing this
> right. It certainly installed okay, so I guess the nix file must be good
> for something. To install the adns 1.4 library, copy the following
> expression file to unstable/pkgs/development/libraries/adns/default.nix:
>
> {stdenv, fetchurl, static ? false}:
>
> stdenv.mkDerivation {
>  name = "adns-1.4";
>  src = fetchurl {
>    url = ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-1.4.tar.gz;
>    md5 = "88bc7bbf3f62a8d4fb186b8f72ead853";
>  };
>  configureFlags = if static then "--disable-dynamic" else "--enable-dynamic";
>
>  # adns doesn't understand the automatic --disable-shared from the Cygwin stdenv.
>  cygwinConfigureEnableShared = true;
> }

This package sounds good abd I am impress because this is your first
nix package.  I hope you will continue to investigate more in Nix.
Usually we add a "meta" attribute that contains information about the packages:

meta = {
  homepage = http://something/;
  description = "A Short description";
  license = "GPL"; # GPL-v2 GPL LPGL ...
  longDescription = ''
    A long description of the packages which is in average
    one or two paragraph long.  This attribute is not always
    provided.
  '';
};

Best regards,

-- 
Nicolas Pierron
- If you are doing something twice then you should try to do it once.
- Do not print documents, save your printer ;)



More information about the nix-dev mailing list