libversion: 3.0.2 -> 3.0.3

fixes build system, so no need for cmakeFlags
This commit is contained in:
Ryan Mulligan 2023-01-13 21:45:16 -05:00
parent f907e2ee5e
commit 007e4b16c8

View File

@ -2,26 +2,17 @@
stdenv.mkDerivation rec {
pname = "libversion";
version = "3.0.2";
version = "3.0.3";
src = fetchFromGitHub {
owner = "repology";
repo = "libversion";
rev = version;
hash = "sha256-P/ykRy+LgcfWls4Zw8noel/K9mh/PnKy3smoQtuSi00=";
hash = "sha256-REmXD0NFd7Af01EU/f2IGoTKiju6ErTI7WUinvrAzaA=";
};
nativeBuildInputs = [ cmake ];
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;