summary refs log tree commit diff
path: root/pkgs/development/tools/misc/gengetopt/default.nix
blob: b6758cb0bc2a227a4db76e03e66257668fb4af62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ fetchurl, stdenv }:

stdenv.mkDerivation rec {
  name = "gengetopt-2.22.6";

  src = fetchurl {
    url = "mirror://gnu/gengetopt/${name}.tar.gz";
    sha256 = "1xq1kcfs6hri101ss4dhym0jn96z4v6jdvx288mfywadc245mc1h";
  };

  doCheck = true;

  postPatch = ''
    sed -e 's/set -o posix/set +o posix/' -i configure
  '';

  meta = {
    description = "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 = https://www.gnu.org/software/gengetopt/;

    license = stdenv.lib.licenses.gpl3Plus;

    maintainers = [ ];
    platforms = stdenv.lib.platforms.all;
  };
}