Add GNU Gengetopt.
svn path=/nixpkgs/trunk/; revision=19618
This commit is contained in:
parent
2feb604243
commit
14ef547359
29
pkgs/development/tools/misc/gengetopt/default.nix
Normal file
29
pkgs/development/tools/misc/gengetopt/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue