2018-05-27 17:12:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
2019-08-13 12:19:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libversion";
|
2020-01-27 13:30:04 +00:00
|
|
|
version = "3.0.1";
|
2018-05-27 17:12:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "repology";
|
|
|
|
repo = "libversion";
|
|
|
|
rev = version;
|
2020-01-27 13:30:04 +00:00
|
|
|
sha256 = "13x5djdpv6aryxsbw6a3b6vwzi9f4aa3gn9dqb7axzppggayawyk";
|
2018-05-27 17:12:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-01-27 13:30:04 +00:00
|
|
|
preCheck = ''
|
|
|
|
export LD_LIBRARY_PATH=/build/source/build/libversion/:$LD_LIBRARY_PATH
|
|
|
|
'';
|
2018-05-27 17:12:52 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|