2018-05-27 18:12:52 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
let
|
2018-11-19 11:34:53 +01:00
|
|
|
version = "2.8.1";
|
2018-05-27 18:12:52 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libversion-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "repology";
|
|
|
|
repo = "libversion";
|
|
|
|
rev = version;
|
2018-11-19 11:34:53 +01:00
|
|
|
sha256 = "0h0yfcgxll09dckzjb1im3yf54cjkpsflr7r4kwz1jcr3fxq41fz";
|
2018-05-27 18:12:52 +02: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;
|
|
|
|
};
|
|
|
|
}
|