summary refs log blame commit diff
path: root/pkgs/development/libraries/libversion/default.nix
blob: 3c7ed207703b80842569b6199e4e6414e70c9486 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                   


                         




                         
                                                                    














                                                               
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  pname = "libversion";
  version = "2.9.0";

  src = fetchFromGitHub {
    owner = "repology";
    repo = "libversion";
    rev = version;
    sha256 = "0h0yfcgxll09dckzjb1im3yf54cjkpsflr7r4kwz1jcr3fxq41fz";
  };

  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;
  };
}