Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "popt"; 5 version = "1.19"; 6 7 src = fetchurl { 8 url = "https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-${version}.tar.gz"; 9 sha256 = "sha256-wlpIOPyOTByKrLi9Yg7bMISj1jv4mH/a08onWMYyQPk="; 10 }; 11 12 patches = lib.optionals stdenv.isCygwin [ 13 ./1.16-cygwin.patch 14 ./1.16-vpath.patch 15 ]; 16 17 doCheck = false; # fails 18 19 meta = with lib; { 20 homepage = "https://github.com/rpm-software-management/popt"; 21 description = "Command line option parsing library"; 22 maintainers = with maintainers; [ qyliss ]; 23 license = licenses.mit; 24 platforms = platforms.unix; 25 }; 26}