Unverified Commit 22d656db authored by Simon Gardling's avatar Simon Gardling
Browse files

optional-lite: init at 3.6.0

parent 77ad0f57
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ninja,
  gitUpdater,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "optional-lite";
  version = "3.6.0";

  src = fetchFromGitHub {
    owner = "martinmoene";
    repo = "optional-lite";
    tag = "v${finalAttrs.version}";
    hash = "sha256-qmKuxYc0cpoOtRRb4okJZ8pYPvzQid1iqBctnhGlz6M=";
  };

  nativeBuildInputs = [
    cmake
    ninja
  ];

  doCheck = true;

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
  };

  meta = {
    description = "A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library";
    homepage = "https://github.com/martinmoene/optional-lite";
    changelog = "https://github.com/martinmoene/optional-lite/blob/v${finalAttrs.version}/CHANGES.txt";
    license = lib.licenses.boost;
    maintainers = with lib.maintainers; [ titaniumtown ];
  };
})