3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #209269 from ryantm/rtm-1-5-libversion

libversion: 3.0.1 -> 3.0.2
This commit is contained in:
Ryan Mulligan 2023-01-06 05:59:07 -08:00 committed by GitHub
commit dd1e243932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,19 +2,28 @@
stdenv.mkDerivation rec {
pname = "libversion";
version = "3.0.1";
version = "3.0.2";
src = fetchFromGitHub {
owner = "repology";
repo = "libversion";
rev = version;
sha256 = "13x5djdpv6aryxsbw6a3b6vwzi9f4aa3gn9dqb7axzppggayawyk";
hash = "sha256-P/ykRy+LgcfWls4Zw8noel/K9mh/PnKy3smoQtuSi00=";
};
nativeBuildInputs = [ cmake ];
doCheck = true;
cmakeFlags = [
# https://github.com/NixOS/nixpkgs/issues/144170
# the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
# (setting it to an absolute path causes include files to go to $out/$out/include,
# because the absolute path is interpreted with root at $out).
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
checkTarget = "test";
doCheck = true;
meta = with lib; {
description = "Advanced version string comparison library";