1 { lib, stdenv, fetchFromGitHub, cmake, gitUpdater }:
3 stdenv.mkDerivation rec {
4 pname = "platform-folders";
7 src = fetchFromGitHub {
9 repo = "PlatformFolders";
11 hash = "sha256-ruhAP9kjwm6pIFJ5a6oy6VE5W39bWQO3qSrT5IUtiwA=";
14 nativeBuildInputs = [ cmake ];
17 "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
20 passthru.updateScript = gitUpdater { };
23 description = "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;
27 platforms = platforms.all;