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