1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/getopt/default.nix
2021-01-15 17:12:36 +07:00

24 lines
586 B
Nix

{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "getopt";
version = "1.1.6";
src = fetchurl {
url = "http://frodo.looijaard.name/system/files/software/${pname}/${pname}-${version}.tar.gz";
sha256 = "1zn5kp8ar853rin0ay2j3p17blxy16agpp8wi8wfg4x98b31vgyh";
};
makeFlags = [
"WITHOUT_GETTEXT=1"
"LIBCGETOPT=0"
"prefix=${placeholder "out"}"
"CC:=$(CC)"
];
meta = {
platforms = lib.platforms.unix;
homepage = "http://frodo.looijaard.name/project/getopt";
description = "Parses command-line arguments from shell scripts";
};
}