Unverified Commit 42622906 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

neargye-semver: init at 0.3.1 (#393018)

parents 5ceea6ef 3757e47a
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  pkg-config,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "neargye-semver";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "Neargye";
    repo = "semver";
    tag = "v${finalAttrs.version}";
    sha256 = "sha256-0HOp+xzo8xcCUUgtSh87N9DXP5P0odBaYXhcDzOiiXE=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  doCheck = true;

  # Install headers
  postInstall = ''
    mkdir -p $out/include
    cp -r $src/include/* $out/include/
  '';

  meta = {
    description = "C++17 header-only dependency-free versioning library complying with Semantic Versioning 2.0.0";
    homepage = "https://github.com/Neargye/semver";
    license = lib.licenses.mit;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ phodina ];
  };
})