nixpkgs/pkgs/development/libraries/libversion/default.nix

27 lines
627 B
Nix
Raw Normal View History

2018-05-27 17:12:52 +01:00
{ stdenv, fetchFromGitHub, cmake }:
2019-08-13 12:19:14 +01:00
stdenv.mkDerivation rec {
pname = "libversion";
version = "2.9.0";
2018-05-27 17:12:52 +01:00
src = fetchFromGitHub {
owner = "repology";
repo = "libversion";
rev = version;
sha256 = "0h0yfcgxll09dckzjb1im3yf54cjkpsflr7r4kwz1jcr3fxq41fz";
2018-05-27 17:12:52 +01:00
};
nativeBuildInputs = [ cmake ];
doCheck = true;
checkTarget = "test";
meta = with stdenv.lib; {
description = "Advanced version string comparison library";
homepage = https://github.com/repology/libversion;
license = with licenses; [ mit ];
maintainers = with maintainers; [ ryantm ];
platforms = platforms.unix;
};
}