Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / platform-folders / default.nix
blob5479502abb233b0093c9ac7c53d07140141e670d
1 { lib, stdenv, fetchFromGitHub, cmake, gitUpdater }:
3 stdenv.mkDerivation rec {
4   pname = "platform-folders";
5   version = "4.2.0";
7   src = fetchFromGitHub {
8     owner = "sago007";
9     repo = "PlatformFolders";
10     rev = version;
11     hash = "sha256-ruhAP9kjwm6pIFJ5a6oy6VE5W39bWQO3qSrT5IUtiwA=";
12   };
14   nativeBuildInputs = [ cmake ];
16   cmakeFlags = [
17     "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
18   ];
20   passthru.updateScript = gitUpdater { };
22   meta = with lib; {
23     description = "A C++ library to look for standard platform directories so that you do not need to write platform-specific code";
24     homepage = "https://github.com/sago007/PlatformFolders";
25     license = licenses.mit;
26     maintainers = with maintainers; [ lilyinstarlight ];
27     platforms = platforms.all;
28   };