summary refs log tree commit diff
path: root/pkgs/development/libraries/popt/default.nix
blob: 441da25836d3bd0242bbe7d2ae64e97bdbb49289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  name = "popt-1.16";

  src = fetchurl {
    url = "http://rpm5.org/files/popt/${name}.tar.gz";
    sha256 = "1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77";
  };

  patches = if stdenv.isCygwin then [
    ./1.16-cygwin.patch
    ./1.16-vpath.patch
  ] else null;

  meta = {
    description = "Command line option parsing library";
    platforms = stdenv.lib.platforms.unix;
  };
}