mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
neargye-semver: init at 0.3.1
This commit is contained in:
parent
aa70590e58
commit
3757e47ad2
1 changed files with 40 additions and 0 deletions
40
pkgs/by-name/ne/neargye-semver/package.nix
Normal file
40
pkgs/by-name/ne/neargye-semver/package.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue