nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ 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 stdenv.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 = [ "i686-linux" "x86_64-linux" ];
21 maintainers = [ maintainers.fragamus ];
22 };
23}