Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub, cmake, lib }: 2 3stdenv.mkDerivation rec { 4 pname = "libversion"; 5 version = "3.0.3"; 6 7 src = fetchFromGitHub { 8 owner = "repology"; 9 repo = "libversion"; 10 rev = version; 11 hash = "sha256-REmXD0NFd7Af01EU/f2IGoTKiju6ErTI7WUinvrAzaA="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 checkTarget = "test"; 17 doCheck = true; 18 19 meta = with lib; { 20 description = "Advanced version string comparison library"; 21 homepage = "https://github.com/repology/libversion"; 22 license = with licenses; [ mit ]; 23 maintainers = with maintainers; [ ryantm ]; 24 platforms = platforms.unix; 25 }; 26}