Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 26 lines 627 B view raw
1{ stdenv, fetchFromGitHub, cmake, lib }: 2 3stdenv.mkDerivation rec { 4 pname = "libversion"; 5 version = "3.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "repology"; 9 repo = "libversion"; 10 rev = version; 11 sha256 = "13x5djdpv6aryxsbw6a3b6vwzi9f4aa3gn9dqb7axzppggayawyk"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 doCheck = true; 17 checkTarget = "test"; 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}