diff --git a/pkgs/development/libraries/plog/default.nix b/pkgs/development/libraries/plog/default.nix new file mode 100644 index 000000000000..789502283b7f --- /dev/null +++ b/pkgs/development/libraries/plog/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation rec { + pname = "plog"; + version = "1.1.9"; + + outputs = [ "out" "dev" ]; + + src = fetchFromGitHub { + owner = "SergiusTheBest"; + repo = pname; + rev = version; + hash = "sha256-CARTr1EEqXNJtp6XwHhr7aiRBiYR0cClzexpNCMaQJc="; + }; + + strictDeps = true; + nativeBuildInputs = [ + cmake + ]; + + cmakeFlags = [ + "-DPLOG_BUILD_SAMPLES=NO" + ]; + + meta = with lib; { + description = "Portable, simple and extensible C++ logging library"; + homepage = "https://github.com/SergiusTheBest/plog"; + license = licenses.mit; + platforms = platforms.linux ++ platforms.darwin; + maintainers = with maintainers; [ raphaelr erdnaxe ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c04460b7738c..b4fd32339b89 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8524,6 +8524,8 @@ with pkgs; pixz = callPackage ../tools/compression/pixz { }; + plog = callPackage ../development/libraries/plog {}; + plplot = callPackage ../development/libraries/plplot { inherit (darwin.apple_sdk.frameworks) Cocoa; };