1 { stdenv, fetchFromGitHub, cmake, lib }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "13x5djdpv6aryxsbw6a3b6vwzi9f4aa3gn9dqb7axzppggayawyk";
14 nativeBuildInputs = [ cmake ];
16 cmakeFlags = lib.optional stdenv.isDarwin [
17 "-DCMAKE_SKIP_BUILD_RPATH=OFF" # needed for tests
21 export LD_LIBRARY_PATH=/build/source/build/libversion/''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
27 description = "Advanced version string comparison library";
28 homepage = "https://github.com/repology/libversion";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ ryantm ];
31 platforms = platforms.unix;