nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / pl / platform-folders / package.nix
blob27f4446891bd0c64dc3c788b90d58c3be59fca79
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 = "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 = [ ];
27     platforms = platforms.all;
28   };