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