nixpkgs/pkgs/development/libraries/libconfig/default.nix

24 lines
715 B
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
2019-03-19 22:32:57 +00:00
pname = "libconfig";
2021-06-21 04:53:25 +00:00
version = "1.7.3";
src = fetchurl {
2019-03-19 22:32:57 +00:00
url = "https://hyperrealm.github.io/${pname}/dist/${pname}-${version}.tar.gz";
2021-06-21 04:53:25 +00:00
sha256 = "sha256-VFFm1srAN3RDgdHpzFpUBQlOe/rRakEWmbz/QLuzHuc=";
};
2019-03-19 22:32:57 +00:00
doCheck = true;
configureFlags = lib.optional (stdenv.targetPlatform.isWindows || stdenv.hostPlatform.isStatic) "--disable-examples";
meta = with lib; {
homepage = "http://www.hyperrealm.com/libconfig";
description = "A simple library for processing structured configuration files";
license = licenses.lgpl3;
maintainers = [ maintainers.goibhniu ];
platforms = with platforms; linux ++ darwin ++ windows;
};
}