Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "libcsptr"; 5 version = "2.0.4"; 6 7 src = fetchFromGitHub { 8 owner = "Snaipe"; 9 repo = "libcsptr"; 10 rev = "v${version}"; 11 sha256 = "0i1498h2i6zq3fn3zf3iw7glv6brn597165hnibgwccqa8sh3ich"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 meta = with lib; { 17 description = "Smart pointer constructs for the (GNU) C programming language"; 18 homepage = "https://github.com/Snaipe/libcsptr"; 19 license = licenses.mit; 20 platforms = platforms.all; 21 maintainers = [ maintainers.fragamus ]; 22 }; 23}