1{ stdenv, fetchFromGitHub, cmake }:
2
3let
4 version = "2.8.1";
5in
6stdenv.mkDerivation {
7 name = "libversion-${version}";
8
9 src = fetchFromGitHub {
10 owner = "repology";
11 repo = "libversion";
12 rev = version;
13 sha256 = "0h0yfcgxll09dckzjb1im3yf54cjkpsflr7r4kwz1jcr3fxq41fz";
14 };
15
16 nativeBuildInputs = [ cmake ];
17
18 doCheck = true;
19 checkTarget = "test";
20
21 meta = with stdenv.lib; {
22 description = "Advanced version string comparison library";
23 homepage = https://github.com/repology/libversion;
24 license = with licenses; [ mit ];
25 maintainers = with maintainers; [ ryantm ];
26 platforms = platforms.unix;
27 };
28}