Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 657 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 openssl, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libomemo-c"; 11 version = "0.5.0"; 12 13 src = fetchFromGitHub { 14 owner = "dino"; 15 repo = "libomemo-c"; 16 rev = "v${version}"; 17 hash = "sha256-GvHMp0FWoApbYLMhKfNxSBel1xxWWF3TZ4lnkLvu2s4="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 buildsInputs = [ openssl ]; 22 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; 23 24 meta = with lib; { 25 description = "Fork of libsignal-protocol-c adding support for OMEMO XEP-0384 0.5.0+"; 26 homepage = "https://github.com/dino/libomemo-c"; 27 license = licenses.gpl3Only; 28 maintainers = [ maintainers.astro ]; 29 }; 30}