2021-01-15 09:19:50 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2004-04-23 17:29:53 +01:00
|
|
|
|
2019-04-30 00:09:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "getopt";
|
|
|
|
version = "1.1.6";
|
2003-12-02 12:54:21 +00:00
|
|
|
src = fetchurl {
|
2019-04-30 00:09:34 +01:00
|
|
|
url = "http://frodo.looijaard.name/system/files/software/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1zn5kp8ar853rin0ay2j3p17blxy16agpp8wi8wfg4x98b31vgyh";
|
2003-12-02 12:54:21 +00:00
|
|
|
};
|
2019-04-30 00:09:34 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"WITHOUT_GETTEXT=1"
|
|
|
|
"LIBCGETOPT=0"
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
"CC:=$(CC)"
|
|
|
|
];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://frodo.looijaard.name/project/getopt";
|
2019-10-06 05:59:27 +01:00
|
|
|
description = "Parses command-line arguments from shell scripts";
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2003-12-02 12:54:21 +00:00
|
|
|
}
|