From 14ef5473591454db5a1ccd0e4b8049867f340343 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 22 Jan 2010 17:00:44 +0000 Subject: Add GNU Gengetopt. svn path=/nixpkgs/trunk/; revision=19618 --- pkgs/development/tools/misc/gengetopt/default.nix | 29 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/misc/gengetopt/default.nix diff --git a/pkgs/development/tools/misc/gengetopt/default.nix b/pkgs/development/tools/misc/gengetopt/default.nix new file mode 100644 index 00000000000..7d5f47dba39 --- /dev/null +++ b/pkgs/development/tools/misc/gengetopt/default.nix @@ -0,0 +1,29 @@ +{ fetchurl, stdenv }: + +stdenv.mkDerivation rec { + name = "gengetopt-2.22.4"; + + src = fetchurl { + url = "mirror://gnu/gengetopt/${name}.tar.gz"; + sha256 = "08a4wmzvin8ljdgw2c0mcz654h4hpzam2p43hsf951c0xhj6ppsf"; + }; + + doCheck = true; + + meta = { + description = "GNU Gengetopt, a command-line option parser generator"; + + longDescription = + '' GNU Gengetopt program generates a C function that uses getopt_long + function to parse the command line options, to validate them and + fills a struct + ''; + + homepage = http://www.gnu.org/software/gengetopt/; + + license = "GPLv3+"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e47fd057a5..cc321eb1d81 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -720,6 +720,10 @@ let inherit fetchurl stdenv; }; + gengetopt = import ../development/tools/misc/gengetopt { + inherit fetchurl stdenv; + }; + getopt = import ../tools/misc/getopt { inherit fetchurl stdenv; }; -- cgit 1.4.1