neargye-semver: init at 0.3.1

This commit is contained in:
Petr Hodina 2025-03-18 21:43:11 +01:00
parent aa70590e58
commit 3757e47ad2

View file

@ -0,0 +1,40 @@
{
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 ];
};
})