[Nix-dev] Packages request

olivier bitmap at pan.homelinux.com
Sun May 15 20:12:38 CEST 2005


Hi,

For my purpose, I need 2 packages: help2man and perl::Locale::gettext.
I created derivations, but it would be nice if they can be added to  
nixpkgs.

help2man.nix:
----
{stdenv, fetchurl, perl, gettext, perlLocaleGettext}:

stdenv.mkDerivation {
   name = "help2man-1.35.1";

   src = fetchurl {
     url = http://ftp.gnu.org/gnu/help2man/help2man-1.35.1.tar.gz;
     md5 = "e3c9e846dd163eb7f1d1661e2d0baa07";
   };

   buildInputs = [
     perl
     gettext
     perlLocaleGettext
   ];

   builder = ./builder.sh;

   inherit gettext;
}
---

builder.sh:
---
. $stdenv/setup

export LD_LIBRARY_PATH=$gettext/lib

genericBuild
---

in all-pkg-generic:
---
perlLocaleGettext = import /pkgs/development/perl-modules/generic perl {
     name = "LocaleGettext";
     src = pkgs.fetchurl {
       url = http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/ 
gettext-1.04.tar.gz;
       md5 = "578dd0c76f8673943be043435b0fbde4";
     };
   };
---

Many thanks.



More information about the nix-dev mailing list