2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "popt";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "1.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-${version}.tar.gz";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "1lf5zlj5rbg6s4bww7hbhpca97prgprnarx978vcwa0bl81vqnai";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
patches = lib.optionals stdenv.isCygwin [
|
2020-04-24 23:36:52 +00:00
|
|
|
./1.16-cygwin.patch
|
|
|
|
./1.16-vpath.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # fails
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/rpm-software-management/popt";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command line option parsing library";
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|